#[repr(u16)]pub enum ErrorStatus {
Show 30 variants
Generic = 1,
OperationNotSupported = 2,
NotSupported = 3,
Corrupted = 4,
InvalidSyscall = 5,
InvalidResource = 6,
InvalidPid = 7,
InvalidOffset = 8,
InvalidPtr = 9,
InvalidStr = 10,
StrTooLong = 11,
InvalidPath = 12,
NoSuchAFileOrDirectory = 13,
NotAFile = 14,
NotADirectory = 15,
AlreadyExists = 16,
NotExecutable = 17,
DirectoryNotEmpty = 18,
MissingPermissions = 19,
MMapError = 20,
Busy = 21,
NotEnoughArguments = 22,
OutOfMemory = 23,
InvalidTid = 24,
Timeout = 25,
InvalidCommand = 26,
InvalidArgument = 27,
Unknown = 28,
Panic = 29,
NotADevice = 30,
}
Variants§
Generic = 1
Use when no ErrorStatus is available for xyz and you cannot add a new one
OperationNotSupported = 2
NotSupported = 3
For example an elf class is not supported, there is a difference between NotSupported and OperationNotSupported
Corrupted = 4
For example a magic value is invalid
InvalidSyscall = 5
InvalidResource = 6
InvalidPid = 7
InvalidOffset = 8
InvalidPtr = 9
instead of panicking syscalls will return this on null and unaligned pointers some operations may accept null pointers
InvalidStr = 10
for operations that requires a valid utf8 str…
StrTooLong = 11
for operations that requires a str that doesn’t exceed a max length such as file names (128 bytes)
InvalidPath = 12
NoSuchAFileOrDirectory = 13
NotAFile = 14
NotADirectory = 15
AlreadyExists = 16
NotExecutable = 17
DirectoryNotEmpty = 18
MissingPermissions = 19
Generic permissions(protection) related error
MMapError = 20
Memory Mapping error for now this means that the region has been already mapped before
Busy = 21
NotEnoughArguments = 22
OutOfMemory = 23
InvalidTid = 24
Invalid Thread ID
Timeout = 25
Operation Timeouted
InvalidCommand = 26
A given Command is unknown or invalid
InvalidArgument = 27
A given Argument is invalid
Unknown = 28
Panic = 29
A panick or a fatal exception occurred, used for example when the rust runtime panics and it wants to exit the process with a value
NotADevice = 30
A given resource wasn’t a Device while one was expected
Implementations§
Trait Implementations§
Source§impl Clone for ErrorStatus
impl Clone for ErrorStatus
Source§fn clone(&self) -> ErrorStatus
fn clone(&self) -> ErrorStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more