pub enum ErrorKind {
UnsupportedFormat,
Malformed,
Encrypted,
Truncated {
expected: u64,
available: u64,
},
LimitExceeded {
resource: &'static str,
limit: u64,
attempted: u64,
},
Io(Error),
Cancelled,
}Expand description
What went wrong.
Variants§
UnsupportedFormat
The input’s format or a feature of it is not supported.
Malformed
A structure or field the format does not allow. Without a context it is an invalid caller-supplied range, count or option.
Encrypted
Truncated
The source ended before a required range was complete.
LimitExceeded
A configured resource bound would be exceeded.
Io(Error)
A source or sink failed.
Cancelled
The caller cancelled the operation.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ErrorKind
impl !UnwindSafe for ErrorKind
impl Freeze for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
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