#[repr(C)]pub enum Error {
Generic(i64),
Serde(String),
Parsing(String),
Enum(String),
Usb(String),
Io(String),
Json(String),
Xfs(String),
DateTime(String),
Bnr(BnrError),
BnrUsb(UsbError),
}Expand description
An error type for the crate.
Variants§
Generic(i64)
Serde(String)
Parsing(String)
Enum(String)
Usb(String)
Io(String)
Json(String)
Xfs(String)
DateTime(String)
Bnr(BnrError)
BnrUsb(UsbError)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Error, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Error, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
Source§fn from(err: FromUtf8Error) -> Error
fn from(err: FromUtf8Error) -> Error
Converts to this type from the input type.
Source§impl<T> From<PoisonError<T>> for Error
impl<T> From<PoisonError<T>> for Error
Source§fn from(err: PoisonError<T>) -> Error
fn from(err: PoisonError<T>) -> Error
Converts to this type from the input type.
Source§impl From<SystemTimeError> for Error
impl From<SystemTimeError> for Error
Source§fn from(err: SystemTimeError) -> Error
fn from(err: SystemTimeError) -> Error
Converts to this type from the input type.
Source§impl From<TransferError> for Error
impl From<TransferError> for Error
Source§fn from(err: TransferError) -> Error
fn from(err: TransferError) -> Error
Converts to this type from the input type.
Source§impl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
Source§fn from(err: TryFromSliceError) -> Error
fn from(err: TryFromSliceError) -> Error
Converts to this type from the input type.
Source§impl Serialize for Error
impl Serialize for Error
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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