pub struct CulvertError<E>(pub ScdcError<E>);Available on crate feature
culvert-async only.Expand description
culvert’s error, as TmdsScdc for culvert::Scdc<T> returns it.
A type of this crate’s own, since DdcError cannot be implemented here for culvert’s
type. Its kind is the transport’s own for a transport failure, and
DdcErrorKind::Unsupported for a request culvert refuses as a protocol violation,
which would be refused again; the procedures’ requests never produce one.
It is as Copy and PartialEq as culvert’s error, so the procedures’ outcomes stay so,
and a transparent wrapper otherwise: its Display is culvert’s error’s, and its
source the one culvert’s error gives.
Tuple Fields§
§0: ScdcError<E>Trait Implementations§
Source§impl<E> Clone for CulvertError<E>where
E: Clone,
impl<E> Clone for CulvertError<E>where
E: Clone,
Source§fn clone(&self) -> CulvertError<E>
fn clone(&self) -> CulvertError<E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<E> Copy for CulvertError<E>where
E: Copy,
Source§impl<E> DdcError for CulvertError<E>where
E: DdcError,
impl<E> DdcError for CulvertError<E>where
E: DdcError,
Source§fn kind(&self) -> DdcErrorKind
fn kind(&self) -> DdcErrorKind
What kind of failure this is.
Source§impl<E> Debug for CulvertError<E>where
E: Debug,
impl<E> Debug for CulvertError<E>where
E: Debug,
Source§impl<E> Display for CulvertError<E>where
E: Display,
impl<E> Display for CulvertError<E>where
E: Display,
impl<E> Eq for CulvertError<E>where
E: Eq,
Source§impl<E> Error for CulvertError<E>where
E: Error + 'static,
impl<E> Error for CulvertError<E>where
E: Error + 'static,
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()
Source§impl<E> From<ScdcError<E>> for CulvertError<E>
impl<E> From<ScdcError<E>> for CulvertError<E>
Source§fn from(error: ScdcError<E>) -> CulvertError<E>
fn from(error: ScdcError<E>) -> CulvertError<E>
Converts to this type from the input type.
Source§impl<E> PartialEq for CulvertError<E>where
E: PartialEq,
impl<E> PartialEq for CulvertError<E>where
E: PartialEq,
impl<E> StructuralPartialEq for CulvertError<E>where
E: PartialEq,
Auto Trait Implementations§
impl<E> Forget for CulvertError<E>
impl<E> Freeze for CulvertError<E>
impl<E> Move for CulvertError<E>
impl<E> RefUnwindSafe for CulvertError<E>where
ScdcError<E>: RefUnwindSafe,
impl<E> Send for CulvertError<E>
impl<E> Sync for CulvertError<E>
impl<E> Unpin for CulvertError<E>
impl<E> UnsafeUnpin for CulvertError<E>where
ScdcError<E>: UnsafeUnpin,
impl<E> UnwindSafe for CulvertError<E>where
ScdcError<E>: 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