pub enum PrinterError {
Transfer(PipeError),
NoInterface,
NoPipe,
InvalidResponse,
InvalidArgument,
Unidirectional,
}Expand description
USB printer host error.
Variants§
Transfer(PipeError)
Pipe transfer error.
NoInterface
No USB printer interface found.
NoPipe
Failed to allocate a pipe.
InvalidResponse
Device response had an unexpected length or invalid format.
InvalidArgument
Invalid argument.
Unidirectional
Attempted to read from a unidirectional printer.
Trait Implementations§
Source§impl Debug for PrinterError
impl Debug for PrinterError
Source§impl Display for PrinterError
impl Display for PrinterError
Source§impl Error for PrinterError
impl Error for PrinterError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl Error for PrinterError
Available on crate feature embedded-io only.
impl Error for PrinterError
Available on crate feature
embedded-io only.Source§impl Format for PrinterError
impl Format for PrinterError
Auto Trait Implementations§
impl Forget for PrinterError
impl Freeze for PrinterError
impl Move for PrinterError
impl RefUnwindSafe for PrinterError
impl Send for PrinterError
impl Sync for PrinterError
impl Unpin for PrinterError
impl UnsafeUnpin for PrinterError
impl UnwindSafe for PrinterError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more