pub enum Error<T = ()> {
Api(T),
Utf8(Utf8Error),
FromUtf8(FromUtf8Error),
CStr(NulError),
NullPtr(NullPtrError),
NullPtrCtx(NullPtrError),
}Variants§
Api(T)
Utf8(Utf8Error)
FromUtf8(FromUtf8Error)
CStr(NulError)
NullPtr(NullPtrError)
NullPtrCtx(NullPtrError)
Implementations§
Trait Implementations§
Source§impl<T> Error for Error<T>where
T: Display + Debug + Any,
impl<T> Error for Error<T>where
T: Display + Debug + Any,
Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
fn description(&self) -> &str
description() is deprecated; use Display
Source§fn source(&self) -> Option<&(dyn CoreError + 'static)>
fn source(&self) -> Option<&(dyn CoreError + 'static)>
Returns the lower-level source of this error, if any. Read more
Source§impl<T> From<NullPtrError> for Error<T>
impl<T> From<NullPtrError> for Error<T>
Source§fn from(error: NullPtrError) -> Self
fn from(error: NullPtrError) -> Self
Converts to this type from the input type.
Source§impl<T> From<NullPtrError> for Error<T>
impl<T> From<NullPtrError> for Error<T>
Source§fn from(error: NullPtrError) -> Self
fn from(error: NullPtrError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for Error<T>where
T: Freeze,
impl<T> RefUnwindSafe for Error<T>where
T: RefUnwindSafe,
impl<T> Send for Error<T>where
T: Send,
impl<T> Sync for Error<T>where
T: Sync,
impl<T> Unpin for Error<T>where
T: Unpin,
impl<T> UnwindSafe for Error<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
§impl<T> ToString for Twhere
T: Display + ?Sized,
impl<T> ToString for Twhere
T: Display + ?Sized,
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.