#[repr(usize)]pub enum SyscallResult {
Ok = 0,
Error = 1,
MemoryRange = 3,
ConnectionId = 7,
Message = 9,
ThreadId = 10,
Scalar1 = 14,
Scalar2 = 15,
MemoryReturned = 18,
Scalar5 = 20,
}Expand description
Copies of these invocation types here for when we’re running in environments without libxous.
Variants§
Ok = 0
The operation completed successfully
Error = 1
An error was encountered, with the exact error stored in $a1
MemoryRange = 3
A slice with the offset in $a1 and the length in $a2
ConnectionId = 7
A u32 connection ID stored in $a1
Message = 9
A message was received
ThreadId = 10
A u32 thread id stored in $a1
Scalar1 = 14
One scalar value, stored in $a1
Scalar2 = 15
Two scalar values, stored in $a1 and $a2
MemoryReturned = 18
Memory that was returned from a syscall, with return values in $a1 and $a2
Scalar5 = 20
Five scalar values, stored in $a1..=$a5
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 moreimpl Copy 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