Enum syscall_encode::encoder::DecodeError
source · pub enum DecodeError {
InvalidData,
InvalidNum,
}
Expand description
Errors that occur during decoding.
Variants§
InvalidData
Data was impossible to decode into the supplied type.
InvalidNum
The number of the syscall was not recognized, or a discriminant was invalid.
Trait Implementations§
source§impl Clone for DecodeError
impl Clone for DecodeError
source§fn clone(&self) -> DecodeError
fn clone(&self) -> DecodeError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DecodeError
impl Debug for DecodeError
source§impl<Err> From<DecodeError> for SyscallError<Err>where
Err: Copy,
impl<Err> From<DecodeError> for SyscallError<Err>where Err: Copy,
source§fn from(value: DecodeError) -> SyscallError<Err>
fn from(value: DecodeError) -> SyscallError<Err>
Converts to this type from the input type.
source§impl Hash for DecodeError
impl Hash for DecodeError
source§impl Ord for DecodeError
impl Ord for DecodeError
source§fn cmp(&self, other: &DecodeError) -> Ordering
fn cmp(&self, other: &DecodeError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<DecodeError> for DecodeError
impl PartialEq<DecodeError> for DecodeError
source§fn eq(&self, other: &DecodeError) -> bool
fn eq(&self, other: &DecodeError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<DecodeError> for DecodeError
impl PartialOrd<DecodeError> for DecodeError
source§fn partial_cmp(&self, other: &DecodeError) -> Option<Ordering>
fn partial_cmp(&self, other: &DecodeError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for DecodeError
impl Eq for DecodeError
impl StructuralEq for DecodeError
impl StructuralPartialEq for DecodeError
Auto Trait Implementations§
impl RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl UnwindSafe for DecodeError
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