pub enum OperationError {
InsufficientInput(Command),
UnexpectedEof,
Io(Error),
}Expand description
Variants§
InsufficientInput(Command)
The input stream ended, before the operation could complete.
If more data becomes available, the provided command can be used to continue unpacking where we left off.
UnexpectedEof
The input stream ended with no unfinished command, this could be a good place to stop unpacking if enough input bytes have been read or enough output bytes provided.
Io(Error)
An operation like read or seek on the underlying underlying reader has failed.
Trait Implementations§
Source§impl Debug for OperationError
impl Debug for OperationError
Source§impl Display for OperationError
impl Display for OperationError
Source§impl Error for OperationError
impl Error for OperationError
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<Error> for OperationError
impl From<Error> for OperationError
Source§impl From<OperationError> for Error
impl From<OperationError> for Error
Source§fn from(value: OperationError) -> Self
fn from(value: OperationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OperationError
impl !RefUnwindSafe for OperationError
impl Send for OperationError
impl Sync for OperationError
impl Unpin for OperationError
impl UnsafeUnpin for OperationError
impl !UnwindSafe for OperationError
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