Enum emerald_std::SyscallError
source · #[non_exhaustive]#[repr(align(8), u8)]pub enum SyscallError {
Show 24 variants
SyscallNotFound = 0,
InvalidError = 1,
CouldNotOpenFile = 2,
InvalidFileIndex = 3,
CouldNotWriteToFile = 4,
CouldNotReadFromFile = 5,
CouldNotLoadElf = 6,
CouldNotAllocateProcess = 7,
HeapRangesExceeded = 8,
EndOfFile = 9,
FileNotFound = 10,
PidNotFound = 11,
ProcessStillRunning = 12,
IsNotDirectory = 13,
IsDirectory = 14,
BufferTooSmall = 15,
GraphicsNotAvailable = 16,
GraphicsAlreadyTaken = 17,
GraphicsNotOwned = 18,
InvalidGraphicsBuffer = 19,
InvalidOffset = 20,
AlreadyExists = 21,
OperationNotSupported = 22,
InvalidArgument(Option<SyscallArgError>, Option<SyscallArgError>, Option<SyscallArgError>, Option<SyscallArgError>, Option<SyscallArgError>, Option<SyscallArgError>, Option<SyscallArgError>),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SyscallNotFound = 0
InvalidError = 1
CouldNotOpenFile = 2
InvalidFileIndex = 3
CouldNotWriteToFile = 4
CouldNotReadFromFile = 5
CouldNotLoadElf = 6
CouldNotAllocateProcess = 7
HeapRangesExceeded = 8
EndOfFile = 9
FileNotFound = 10
PidNotFound = 11
ProcessStillRunning = 12
IsNotDirectory = 13
IsDirectory = 14
BufferTooSmall = 15
GraphicsNotAvailable = 16
GraphicsAlreadyTaken = 17
GraphicsNotOwned = 18
InvalidGraphicsBuffer = 19
InvalidOffset = 20
AlreadyExists = 21
OperationNotSupported = 22
InvalidArgument(Option<SyscallArgError>, Option<SyscallArgError>, Option<SyscallArgError>, Option<SyscallArgError>, Option<SyscallArgError>, Option<SyscallArgError>, Option<SyscallArgError>)
Trait Implementations§
source§impl Clone for SyscallError
impl Clone for SyscallError
source§fn clone(&self) -> SyscallError
fn clone(&self) -> SyscallError
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 SyscallError
impl Debug for SyscallError
impl Copy for SyscallError
Auto Trait Implementations§
impl RefUnwindSafe for SyscallError
impl Send for SyscallError
impl Sync for SyscallError
impl Unpin for SyscallError
impl UnwindSafe for SyscallError
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