pub enum SysError {
IndexOutOfBound,
ItemMissing,
LengthNotEnough(usize),
Encoding,
WaitFailure,
InvalidFd,
OtherEndClosed,
MaxVmsSpawned,
MaxFdsCreated,
Unknown(u64),
}
Expand description
Syscall errors
Variants§
IndexOutOfBound
Index out of bound
ItemMissing
Field is missing for the target
LengthNotEnough(usize)
Buffer length is not enough, error contains actual data length
Encoding
Data encoding error
WaitFailure
Failed to wait. Its value is 5.
InvalidFd
Invalid file descriptor. Its value is 6.
OtherEndClosed
Reading from or writing to file descriptor failed due to other end closed. Its value is 7.
MaxVmsSpawned
Max vms has been spawned. Its value is 8.
MaxFdsCreated
Max fds has been spawned. Its value is 9.
Unknown(u64)
Unknown syscall error number
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 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