pub enum DriveWithError<E> {
Parse(Error),
Utf8(Utf8Error),
UnboundPrefix(String),
UnexpectedEof {
depth: usize,
},
Hook(E),
}Expand description
Errors raised by the layer-2 helpers.
Variants§
Parse(Error)
Utf8(Utf8Error)
UnboundPrefix(String)
UnexpectedEof
Hook(E)
A handler hook returned an error.
Trait Implementations§
Source§impl<E: Debug> Debug for DriveWithError<E>
impl<E: Debug> Debug for DriveWithError<E>
Source§impl<E> Display for DriveWithError<E>
impl<E> Display for DriveWithError<E>
Source§impl<E> Error for DriveWithError<E>
impl<E> Error for DriveWithError<E>
1.30.0 · 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
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl<E> !RefUnwindSafe for DriveWithError<E>
impl<E> !UnwindSafe for DriveWithError<E>
impl<E> Freeze for DriveWithError<E>where
E: Freeze,
impl<E> Send for DriveWithError<E>where
E: Send,
impl<E> Sync for DriveWithError<E>where
E: Sync,
impl<E> Unpin for DriveWithError<E>where
E: Unpin,
impl<E> UnsafeUnpin for DriveWithError<E>where
E: UnsafeUnpin,
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