pub struct Error { /* private fields */ }
Implementations
sourceimpl Error
impl Error
pub fn new(kind: ErrorKind, message: Option<impl Display>) -> Self
pub fn io(e: impl Display) -> Self
pub fn data(e: impl Display) -> Self
pub fn not_supported(e: impl Display) -> Self
pub fn not_registered() -> Self
pub fn not_delivered() -> Self
pub fn timeout() -> Self
pub fn busy(e: impl Display) -> Self
pub fn kind(&self) -> ErrorKind
Trait Implementations
sourceimpl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
sourcefn from(e: TryFromSliceError) -> Error
fn from(e: TryFromSliceError) -> Error
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more