#[repr(u64)]pub enum ThreadSpawnError {
Unknown = 0,
InvalidArgument = 1,
NotFound = 2,
}
Expand description
Possible error values for sys_spawn.
Variants§
Unknown = 0
An unknown error occurred.
InvalidArgument = 1
One of the arguments was invalid.
NotFound = 2
A specified object (handle) was not found.
Trait Implementations§
source§impl Clone for ThreadSpawnError
impl Clone for ThreadSpawnError
source§fn clone(&self) -> ThreadSpawnError
fn clone(&self) -> ThreadSpawnError
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 ThreadSpawnError
impl Debug for ThreadSpawnError
source§impl Display for ThreadSpawnError
impl Display for ThreadSpawnError
source§impl From<ThreadSpawnError> for SpawnError
impl From<ThreadSpawnError> for SpawnError
source§fn from(ts: ThreadSpawnError) -> Self
fn from(ts: ThreadSpawnError) -> Self
Converts to this type from the input type.
source§impl From<ThreadSpawnError> for u64
impl From<ThreadSpawnError> for u64
source§fn from(enum_value: ThreadSpawnError) -> Self
fn from(enum_value: ThreadSpawnError) -> Self
Converts to this type from the input type.
source§impl From<u64> for ThreadSpawnError
impl From<u64> for ThreadSpawnError
source§impl FromPrimitive for ThreadSpawnError
impl FromPrimitive for ThreadSpawnError
source§impl Ord for ThreadSpawnError
impl Ord for ThreadSpawnError
source§fn cmp(&self, other: &ThreadSpawnError) -> Ordering
fn cmp(&self, other: &ThreadSpawnError) -> 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 for ThreadSpawnError
impl PartialEq for ThreadSpawnError
source§impl PartialOrd for ThreadSpawnError
impl PartialOrd for ThreadSpawnError
impl Copy for ThreadSpawnError
impl Eq for ThreadSpawnError
impl StructuralPartialEq for ThreadSpawnError
Auto Trait Implementations§
impl Freeze for ThreadSpawnError
impl ObjSafe for ThreadSpawnError
impl RefUnwindSafe for ThreadSpawnError
impl Send for ThreadSpawnError
impl Sync for ThreadSpawnError
impl Unpin for ThreadSpawnError
impl UnwindSafe for ThreadSpawnError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.