Enum twizzler_runtime_api::SpawnError
source · pub enum SpawnError {
Other,
InvalidArgument,
ObjectNotFound,
PermissionDenied,
KernelError,
}
Expand description
Possible errors on spawn.
Variants§
Other
An error that is not classified.
InvalidArgument
One of the arguments in spawn args was invalid.
ObjectNotFound
An object used as a handle was not found.
PermissionDenied
An object used as a handle may not be accessed by the caller.
KernelError
Failed to spawn thread in-kernel.
Trait Implementations§
source§impl Clone for SpawnError
impl Clone for SpawnError
source§fn clone(&self) -> SpawnError
fn clone(&self) -> SpawnError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SpawnError
impl Debug for SpawnError
source§impl Display for SpawnError
impl Display for SpawnError
source§impl Error for SpawnError
impl Error for SpawnError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl Ord for SpawnError
impl Ord for SpawnError
source§fn cmp(&self, other: &SpawnError) -> Ordering
fn cmp(&self, other: &SpawnError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SpawnError> for SpawnError
impl PartialEq<SpawnError> for SpawnError
source§fn eq(&self, other: &SpawnError) -> bool
fn eq(&self, other: &SpawnError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SpawnError> for SpawnError
impl PartialOrd<SpawnError> for SpawnError
source§fn partial_cmp(&self, other: &SpawnError) -> Option<Ordering>
fn partial_cmp(&self, other: &SpawnError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SpawnError
impl Eq for SpawnError
impl StructuralEq for SpawnError
impl StructuralPartialEq for SpawnError
Auto Trait Implementations§
impl RefUnwindSafe for SpawnError
impl Send for SpawnError
impl Sync for SpawnError
impl Unpin for SpawnError
impl UnwindSafe for SpawnError
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