pub enum PrinterError {
NotConnected,
BufferOverflow,
}Expand description
Errors that can occur when communicating with a printer device.
Variants§
NotConnected
Endpoint is disabled (e.g. cable disconnected).
BufferOverflow
Buffer overflow occurred.
Trait Implementations§
Source§impl Clone for PrinterError
impl Clone for PrinterError
impl Copy for PrinterError
Source§impl Debug for PrinterError
impl Debug for PrinterError
Source§impl Display for PrinterError
impl Display for PrinterError
impl Eq 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
Source§impl From<EndpointDisabledError> for PrinterError
impl From<EndpointDisabledError> for PrinterError
Source§fn from(_: EndpointDisabledError) -> Self
fn from(_: EndpointDisabledError) -> Self
Converts to this type from the input type.
Source§impl From<EndpointError> for PrinterError
impl From<EndpointError> for PrinterError
Source§fn from(val: EndpointError) -> Self
fn from(val: EndpointError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PrinterError
impl PartialEq for PrinterError
impl StructuralPartialEq 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