pub enum IppError {
HttpError(Error),
IOError(Error),
StatusError(StatusCode),
PrinterStateError(Vec<String>),
PrinterStopped,
ParamError(String),
ParseError(ParseError),
MissingAttribute,
InvalidAttributeType,
}
Expand description
IPP error
Variants§
HttpError(Error)
HTTP error
IOError(Error)
Network or file I/O error
StatusError(StatusCode)
IPP status error
PrinterStateError(Vec<String>)
Printer state error
PrinterStopped
Printer stopped
ParamError(String)
Parameter error
ParseError(ParseError)
Parsing error
MissingAttribute
Missing attribute in response
InvalidAttributeType
Invalid attribute type
Trait Implementations§
Source§impl Error for IppError
impl Error for IppError
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 From<ParseError> for IppError
impl From<ParseError> for IppError
Source§fn from(error: ParseError) -> Self
fn from(error: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<StatusCode> for IppError
impl From<StatusCode> for IppError
Source§fn from(code: StatusCode) -> Self
fn from(code: StatusCode) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IppError
impl !RefUnwindSafe for IppError
impl Send for IppError
impl Sync for IppError
impl Unpin for IppError
impl !UnwindSafe for IppError
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
Source§impl<E> Fail for E
impl<E> Fail for E
Source§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreSource§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more