pub struct SyscallResult(/* private fields */);
Expand description
An opaque type that represents a syscall result
the underlying type is a 16 bit unsigned integer, in which 0 is success and any other value is in error
represented by the ErrorStatus
enum
Implementations§
Source§impl SyscallResult
impl SyscallResult
pub const fn into_result(self) -> Result<(), ErrorStatus>
pub const fn is_success(self) -> bool
Trait Implementations§
Source§impl Clone for SyscallResult
impl Clone for SyscallResult
Source§fn clone(&self) -> SyscallResult
fn clone(&self) -> SyscallResult
Returns a duplicate 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 SyscallResult
impl Debug for SyscallResult
Source§impl PartialEq for SyscallResult
impl PartialEq for SyscallResult
impl Copy for SyscallResult
impl Eq for SyscallResult
impl StructuralPartialEq for SyscallResult
Auto Trait Implementations§
impl Freeze for SyscallResult
impl RefUnwindSafe for SyscallResult
impl Send for SyscallResult
impl Sync for SyscallResult
impl Unpin for SyscallResult
impl UnwindSafe for SyscallResult
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