pub enum PrinterError {
Unreachable {
detail: String,
},
Unauthorized {
detail: String,
},
Refused {
status: u16,
detail: String,
},
StateConflict {
detail: String,
},
Unsupported {
adjustable: Adjustable,
},
Malformed {
detail: String,
},
}Expand description
Why the printer did not do what it was asked.
Variants§
Unreachable
The printer could not be reached at all.
The printer refused the credentials.
Fields
What the printer said about them.
Refused
The printer refused the request, in its own words.
StateConflict
The printer is not in a state this request is valid from.
Unsupported
This printer cannot express that adjustable at all.
Fields
§
adjustable: AdjustableThe adjustable this printer does not have.
Malformed
The printer answered something this port could not read.
Trait Implementations§
Source§impl Clone for PrinterError
impl Clone for PrinterError
Source§fn clone(&self) -> PrinterError
fn clone(&self) -> PrinterError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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 PartialEq for PrinterError
impl PartialEq for PrinterError
impl StructuralPartialEq for PrinterError
Auto Trait Implementations§
impl Freeze 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