pub enum NbsError {
InvalidFormat,
InvalidString(FromUtf8Error),
IoError(Error),
}Variants§
InvalidFormat
This error occures when the format does not contain the expected data
InvalidString(FromUtf8Error)
This error occurs when decoding a string thats not utf-8
IoError(Error)
This error occures when an io operation fails
Trait Implementations§
Source§impl Error for NbsError
impl Error for NbsError
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
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<FromUtf8Error> for NbsError
impl From<FromUtf8Error> for NbsError
Source§fn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NbsError
impl !RefUnwindSafe for NbsError
impl Send for NbsError
impl Sync for NbsError
impl Unpin for NbsError
impl UnsafeUnpin for NbsError
impl !UnwindSafe for NbsError
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