Enum escpos::errors::PrinterError
source · pub enum PrinterError {
Io(String),
Input(String),
}
Expand description
Printer error
Variants§
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)>
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 From<BorrowMutError> for PrinterError
impl From<BorrowMutError> for PrinterError
source§fn from(err: BorrowMutError) -> Self
fn from(err: BorrowMutError) -> Self
Converts to this type from the input type.
source§impl From<Error> for PrinterError
impl From<Error> for PrinterError
source§fn from(err: Error) -> PrinterError
fn from(err: Error) -> PrinterError
Converts to this type from the input type.
source§impl From<ImageError> for PrinterError
impl From<ImageError> for PrinterError
source§fn from(err: ImageError) -> Self
fn from(err: ImageError) -> Self
Converts to this type from the input type.
source§impl From<TryFromIntError> for PrinterError
impl From<TryFromIntError> for PrinterError
source§fn from(err: TryFromIntError) -> Self
fn from(err: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PrinterError
impl RefUnwindSafe for PrinterError
impl Send for PrinterError
impl Sync for PrinterError
impl Unpin 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