pub enum GdbmError {
FromUtf8Error(FromUtf8Error),
Utf8Error(Utf8Error),
NulError(NulError),
Error(String),
IoError(Error),
IntoStringError(IntoStringError),
}
Expand description
Custom error handling for the library
Variants§
FromUtf8Error(FromUtf8Error)
Utf8Error(Utf8Error)
NulError(NulError)
Error(String)
IoError(Error)
IntoStringError(IntoStringError)
Implementations§
Trait Implementations§
Source§impl Error for GdbmError
impl Error for GdbmError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn StdError>
fn cause(&self) -> Option<&dyn StdError>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<FromUtf8Error> for GdbmError
impl From<FromUtf8Error> for GdbmError
Source§fn from(err: FromUtf8Error) -> GdbmError
fn from(err: FromUtf8Error) -> GdbmError
Converts to this type from the input type.
Source§impl From<IntoStringError> for GdbmError
impl From<IntoStringError> for GdbmError
Source§fn from(err: IntoStringError) -> GdbmError
fn from(err: IntoStringError) -> GdbmError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GdbmError
impl !RefUnwindSafe for GdbmError
impl Send for GdbmError
impl Sync for GdbmError
impl Unpin for GdbmError
impl !UnwindSafe for GdbmError
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