pub enum Error<S, P> {
Serial(S),
Pin(P),
}Expand description
Custom Error type
Variants§
Trait Implementations§
Source§impl<S, P> Error for Error<S, P>
impl<S, P> Error for Error<S, P>
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<S, P> Freeze for Error<S, P>
impl<S, P> RefUnwindSafe for Error<S, P>where
S: RefUnwindSafe,
P: RefUnwindSafe,
impl<S, P> Send for Error<S, P>
impl<S, P> Sync for Error<S, P>
impl<S, P> Unpin for Error<S, P>
impl<S, P> UnwindSafe for Error<S, P>where
S: UnwindSafe,
P: UnwindSafe,
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