[−][src]Struct sunrise_kernel::error::UserspaceError
Kernel syscall error codes.
When a syscall fails, it returns one of this values as a reason for the fail.
Implementations
impl KernelError
[src]
pub fn make_ret(self) -> u32
[src]
Transforms a KernelError into the encoding acceptable for a syscall return value.
pub fn from_syscall_ret(err: u32) -> KernelError
[src]
Turns a syscall return value into a Kernel Error.
pub fn from_description(err: u32) -> KernelError
[src]
Turns a kernel error description into a KernelError.
pub fn description(self) -> u32
[src]
Gets the underlying KernelError description.
impl KernelError
[src]
pub const InvalidKernelCaps: KernelError
[src]
Kernel capabilities are invalid.
pub const NotImplemented: KernelError
[src]
This function is not implemented.
pub const InvalidSize: KernelError
[src]
The size argument is invalid.
Generally means it's not properly aligned.
pub const InvalidAddress: KernelError
[src]
The passed address is invalid.
Generally means it is not page aligned.
pub const MemoryFull: KernelError
[src]
The virtual address space was exhausted.
pub const HandleTableFull: KernelError
[src]
The process' handle table is full.
pub const InvalidMemState: KernelError
[src]
The memory state is invalid for this action.
pub const InvalidMemPerms: KernelError
[src]
The memory permissions passed are wrong.
pub const InvalidMemRange: KernelError
[src]
Memory range is not at an expected location.
pub const InvalidThreadPriority: KernelError
[src]
Invalid thread priority. Thread priority should be within the range 0..=0x3F, and should be allowed in the kernel capabilities.
pub const InvalidProcessorId: KernelError
[src]
Invalid processor id. Processor ID should exist on the current machine and be allowed in the kernel capabilities.
pub const InvalidHandle: KernelError
[src]
Passed handle is invalid.
Either the handle passed is of the wrong type, or the handle number wasn't valid at all.
pub const CopyFromUserFailed: KernelError
[src]
Attempt to copy the userspace address failed.
pub const InvalidCombination: KernelError
[src]
The combination of argument is invalid.
pub const Timeout: KernelError
[src]
A timeout was reached.
pub const Canceled: KernelError
[src]
The syscall was cancelled through cancel_synchronization.
pub const ExceedingMaximum: KernelError
[src]
A size or address was given exceeding the maximum allowed value.
pub const InvalidEnum: KernelError
[src]
No enum variants match this integer value.
pub const NoSuchEntry: KernelError
[src]
The given entry does not exist.
pub const PortRemoteDead: KernelError
[src]
The remote part of the session was closed.
pub const InvalidState: KernelError
[src]
Attempted to do an operation that's invalid in the handle's current state.
pub const ReservedValue: KernelError
[src]
Attempted to use an unknown value, reserved for future use.
Trait Implementations
impl Clone for KernelError
[src]
fn clone(&self) -> KernelError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for KernelError
[src]
impl Debug for KernelError
[src]
impl Display for KernelError
[src]
impl Eq for KernelError
[src]
impl From<KernelError> for UserspaceError
[src]
fn from(err: KernelError) -> UserspaceError
[src]
impl PartialEq<KernelError> for KernelError
[src]
fn eq(&self, other: &KernelError) -> bool
[src]
fn ne(&self, other: &KernelError) -> bool
[src]
impl StructuralEq for KernelError
[src]
impl StructuralPartialEq for KernelError
[src]
Auto Trait Implementations
impl RefUnwindSafe for KernelError
impl Send for KernelError
impl Sync for KernelError
impl Unpin for KernelError
impl UnwindSafe for KernelError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,