pub enum GenericTransportError<T: Error + Send + Sync> {
TooLarge,
Malformed,
Inner(T),
}
Expand description
Generic transport error.
Variants§
Trait Implementations§
source§impl<T: Error + Send + Sync> Error for GenericTransportError<T>where
Self: Debug + Display,
impl<T: Error + Send + Sync> Error for GenericTransportError<T>where Self: Debug + Display,
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<T> RefUnwindSafe for GenericTransportError<T>where T: RefUnwindSafe,
impl<T> Send for GenericTransportError<T>
impl<T> Sync for GenericTransportError<T>
impl<T> Unpin for GenericTransportError<T>where T: Unpin,
impl<T> UnwindSafe for GenericTransportError<T>where T: 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