#[repr(u16)]pub enum SysError {
Show 24 variants
NotPermitted = 1,
NoEntry = 2,
NoProcess = 3,
Interrupted = 4,
IoError = 5,
InvalidExecutable = 8,
BadDescriptor = 9,
NoChildren = 10,
ResourceUnavailable = 11,
OutOfMemory = 12,
BadAddress = 14,
AlreadyExists = 17,
CrossDeviceLink = 18,
NotDirectory = 20,
IsDirectory = 21,
InvalidArgument = 22,
FileTableFull = 23,
TooManyFiles = 24,
NoSpace = 28,
TooManyLinks = 31,
BrokenPipe = 32,
NameTooLong = 36,
NotImplemented = 38,
NotEmpty = 39,
}Expand description
Syscall error codes using POSIX-standard numeric values.
Kernel encodes -(error_code as isize) in the return register (a0).
User space decodes negative values back into SysError variants.
Variants§
NotPermitted = 1
NoEntry = 2
NoProcess = 3
Interrupted = 4
IoError = 5
InvalidExecutable = 8
BadDescriptor = 9
NoChildren = 10
OutOfMemory = 12
BadAddress = 14
AlreadyExists = 17
CrossDeviceLink = 18
NotDirectory = 20
IsDirectory = 21
InvalidArgument = 22
FileTableFull = 23
TooManyFiles = 24
NoSpace = 28
TooManyLinks = 31
BrokenPipe = 32
NameTooLong = 36
NotImplemented = 38
NotEmpty = 39
Implementations§
Trait Implementations§
impl Copy for SysError
impl Eq for SysError
impl StructuralPartialEq for SysError
Auto Trait Implementations§
impl Freeze for SysError
impl RefUnwindSafe for SysError
impl Send for SysError
impl Sync for SysError
impl Unpin for SysError
impl UnsafeUnpin for SysError
impl UnwindSafe for SysError
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