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

source§

fn clone(&self) -> SyscallError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SyscallError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Copy for SyscallError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.