#[non_exhaustive]pub enum ErrorKind {
Show 13 variants
AlreadyExists,
BrokenPipe,
CrossesDevices,
Interrupted,
InvalidData,
InvalidInput,
NotFound,
Other,
PermissionDenied,
UnexpectedEof,
Unsupported,
WouldBlock,
WriteZero,
}Expand description
Mirrors std::io::ErrorKind for the variants this crate actually
constructs. Kept in alphabetical order so additions stay easy to spot.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AlreadyExists
Entity (file, directory, key, etc.) already exists.
BrokenPipe
Broken pipe — the other end of a stream is closed.
CrossesDevices
Operation attempted across distinct devices/filesystems.
Interrupted
Operation was interrupted (EINTR-equivalent); usually retriable.
InvalidData
Data being read does not match the expected format/schema.
InvalidInput
A function argument had an invalid value.
NotFound
Entity was not found.
Other
Catch-all for errors that don’t fit any other variant.
PermissionDenied
Operation denied due to lack of permissions.
UnexpectedEof
Reader hit end-of-file before satisfying the request.
Unsupported
Operation is not supported on this platform / backend / build.
WouldBlock
Operation would block (EAGAIN / EWOULDBLOCK-equivalent); the caller
can retry. Mirrors std::io::ErrorKind::WouldBlock.
WriteZero
write returned Ok(0) while bytes still needed to be
written. Mirrors std::io::ErrorKind::WriteZero so callers
can distinguish a stuck-writer short write from a generic
Other failure.
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§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>
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>
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