Enum syscall_encode::error::SyscallError
source · pub enum SyscallError<Err>where
Err: Copy,{
InvalidData,
InvalidNum,
AllocationError,
SyscallError(Err),
}Expand description
Error returning from a syscall. SyscallError comes from errors from the call itself, whereas the other values indicate errors during encode or decode.
Variants§
Trait Implementations§
source§impl<Err> Clone for SyscallError<Err>where
Err: Clone + Copy,
impl<Err> Clone for SyscallError<Err>where Err: Clone + Copy,
source§fn clone(&self) -> SyscallError<Err>
fn clone(&self) -> SyscallError<Err>
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<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<Err> From<EncodeError> for SyscallError<Err>where
Err: Copy,
impl<Err> From<EncodeError> for SyscallError<Err>where Err: Copy,
source§fn from(value: EncodeError) -> SyscallError<Err>
fn from(value: EncodeError) -> SyscallError<Err>
Converts to this type from the input type.
source§impl<Err> Ord for SyscallError<Err>where
Err: Ord + Copy,
impl<Err> Ord for SyscallError<Err>where Err: Ord + Copy,
source§fn cmp(&self, other: &SyscallError<Err>) -> Ordering
fn cmp(&self, other: &SyscallError<Err>) -> 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<Err> PartialEq<SyscallError<Err>> for SyscallError<Err>where
Err: PartialEq<Err> + Copy,
impl<Err> PartialEq<SyscallError<Err>> for SyscallError<Err>where Err: PartialEq<Err> + Copy,
source§fn eq(&self, other: &SyscallError<Err>) -> bool
fn eq(&self, other: &SyscallError<Err>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<Err> PartialOrd<SyscallError<Err>> for SyscallError<Err>where
Err: PartialOrd<Err> + Copy,
impl<Err> PartialOrd<SyscallError<Err>> for SyscallError<Err>where Err: PartialOrd<Err> + Copy,
source§fn partial_cmp(&self, other: &SyscallError<Err>) -> Option<Ordering>
fn partial_cmp(&self, other: &SyscallError<Err>) -> 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 moresource§impl<'a, Err, Abi, EncodedType> SyscallEncodable<'a, Abi, EncodedType, <Abi as SyscallAbi>::RetEncoder<'a>> for SyscallError<Err>where
Err: SyscallEncodable<'a, Abi, EncodedType, <Abi as SyscallAbi>::RetEncoder<'a>>,
Abi: SyscallAbi,
EncodedType: Copy,
<Abi as SyscallAbi>::RetEncoder<'a>: SyscallEncoder<'a, Abi, EncodedType>,
impl<'a, Err, Abi, EncodedType> SyscallEncodable<'a, Abi, EncodedType, <Abi as SyscallAbi>::RetEncoder<'a>> for SyscallError<Err>where Err: SyscallEncodable<'a, Abi, EncodedType, <Abi as SyscallAbi>::RetEncoder<'a>>, Abi: SyscallAbi, EncodedType: Copy, <Abi as SyscallAbi>::RetEncoder<'a>: SyscallEncoder<'a, Abi, EncodedType>,
fn encode( &self, encoder: &mut <Abi as SyscallAbi>::RetEncoder<'a> ) -> Result<(), EncodeError>
fn decode( decoder: &mut <Abi as SyscallAbi>::RetEncoder<'a> ) -> Result<SyscallError<Err>, DecodeError>where SyscallError<Err>: Sized,
impl<Err> Copy for SyscallError<Err>where Err: Copy,
impl<Err> Eq for SyscallError<Err>where Err: Eq + Copy,
impl<Err> StructuralEq for SyscallError<Err>where Err: Copy,
impl<Err> StructuralPartialEq for SyscallError<Err>where Err: Copy,
Auto Trait Implementations§
impl<Err> RefUnwindSafe for SyscallError<Err>where Err: RefUnwindSafe,
impl<Err> Send for SyscallError<Err>where Err: Send,
impl<Err> Sync for SyscallError<Err>where Err: Sync,
impl<Err> Unpin for SyscallError<Err>where Err: Unpin,
impl<Err> UnwindSafe for SyscallError<Err>where Err: 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