pub enum BitsErrorKind {
Show 21 variants
InvalidData,
UnexpectedEof,
FormatError,
OutOfMemory,
NotFound,
PermissionDenied,
ConnectionRefused,
ConnectionReset,
ConnectionAborted,
AddrInUse,
AddrNotAvailable,
BrokenPipe,
AlreadyExists,
WouldBlock,
InvalidInput,
TimedOut,
WriteZero,
Interrupted,
NotConnected,
Unsupported,
Other,
}
Expand description
Enum originally modelled after std::io::ErrorKind
, used to indicate the
type of the error encountered.
Variants§
InvalidData
UnexpectedEof
FormatError
OutOfMemory
NotFound
PermissionDenied
ConnectionRefused
ConnectionReset
ConnectionAborted
AddrInUse
AddrNotAvailable
BrokenPipe
AlreadyExists
WouldBlock
InvalidInput
TimedOut
WriteZero
Interrupted
NotConnected
Unsupported
Other
Implementations§
Trait Implementations§
Source§impl Clone for BitsErrorKind
impl Clone for BitsErrorKind
Source§fn clone(&self) -> BitsErrorKind
fn clone(&self) -> BitsErrorKind
Returns a copy of the value. Read more
1.0.0 · 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 BitsErrorKind
impl Debug for BitsErrorKind
Source§impl From<BitsErrorKind> for BitsError
impl From<BitsErrorKind> for BitsError
Source§fn from(kind: BitsErrorKind) -> Self
fn from(kind: BitsErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<BitsErrorKind> for ErrorKind
impl From<BitsErrorKind> for ErrorKind
Source§fn from(value: BitsErrorKind) -> Self
fn from(value: BitsErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<ErrorKind> for BitsErrorKind
impl From<ErrorKind> for BitsErrorKind
Source§impl PartialEq for BitsErrorKind
impl PartialEq for BitsErrorKind
impl Copy for BitsErrorKind
impl Eq for BitsErrorKind
impl StructuralPartialEq for BitsErrorKind
Auto Trait Implementations§
impl Freeze for BitsErrorKind
impl RefUnwindSafe for BitsErrorKind
impl Send for BitsErrorKind
impl Sync for BitsErrorKind
impl Unpin for BitsErrorKind
impl UnwindSafe for BitsErrorKind
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