Enum binary_layout::WrappedFieldError
source · pub enum WrappedFieldError<PrimitiveAccessError, LayoutAsError> {
PrimitiveAccessError(PrimitiveAccessError),
LayoutAsError(LayoutAsError),
}Expand description
The error being thrown when reading or writing fields that use custom data types implemented via LayoutAs.
Variants§
PrimitiveAccessError(PrimitiveAccessError)
An error happened when reading or writing the primitive data type the LayoutAs stores values at.
LayoutAsError(LayoutAsError)
An error happened in the call to LayoutAs::try_read or LayoutAs::try_write
Trait Implementations§
source§impl<PrimitiveAccessError: Debug, LayoutAsError: Debug> Debug for WrappedFieldError<PrimitiveAccessError, LayoutAsError>
impl<PrimitiveAccessError: Debug, LayoutAsError: Debug> Debug for WrappedFieldError<PrimitiveAccessError, LayoutAsError>
source§impl<PrimitiveAccessError, LayoutAsError> Display for WrappedFieldError<PrimitiveAccessError, LayoutAsError>
impl<PrimitiveAccessError, LayoutAsError> Display for WrappedFieldError<PrimitiveAccessError, LayoutAsError>
source§impl<PrimitiveAccessError, LayoutAsError> Error for WrappedFieldError<PrimitiveAccessError, LayoutAsError>
impl<PrimitiveAccessError, LayoutAsError> Error for WrappedFieldError<PrimitiveAccessError, LayoutAsError>
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<PrimitiveAccessError, LayoutAsError> RefUnwindSafe for WrappedFieldError<PrimitiveAccessError, LayoutAsError>where
LayoutAsError: RefUnwindSafe,
PrimitiveAccessError: RefUnwindSafe,
impl<PrimitiveAccessError, LayoutAsError> Send for WrappedFieldError<PrimitiveAccessError, LayoutAsError>
impl<PrimitiveAccessError, LayoutAsError> Sync for WrappedFieldError<PrimitiveAccessError, LayoutAsError>
impl<PrimitiveAccessError, LayoutAsError> Unpin for WrappedFieldError<PrimitiveAccessError, LayoutAsError>
impl<PrimitiveAccessError, LayoutAsError> UnwindSafe for WrappedFieldError<PrimitiveAccessError, LayoutAsError>where
LayoutAsError: UnwindSafe,
PrimitiveAccessError: 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