#[repr(u64)]pub enum ThreadSyncError {
Unknown = 0,
InvalidArgument = 1,
InvalidReference = 2,
Timeout = 3,
}
Expand description
Possible error returns for sys_thread_sync.
Variants§
Unknown = 0
An unknown error occurred.
InvalidArgument = 1
One of the arguments was invalid.
InvalidReference = 2
Invalid reference.
Timeout = 3
The operation timed out.
Trait Implementations§
source§impl Clone for ThreadSyncError
impl Clone for ThreadSyncError
source§fn clone(&self) -> ThreadSyncError
fn clone(&self) -> ThreadSyncError
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 ThreadSyncError
impl Debug for ThreadSyncError
source§impl Display for ThreadSyncError
impl Display for ThreadSyncError
source§impl Error for ThreadSyncError
impl Error for ThreadSyncError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<ThreadSyncError> for u64
impl From<ThreadSyncError> for u64
source§fn from(enum_value: ThreadSyncError) -> Self
fn from(enum_value: ThreadSyncError) -> Self
Converts to this type from the input type.
source§impl From<u64> for ThreadSyncError
impl From<u64> for ThreadSyncError
source§impl FromPrimitive for ThreadSyncError
impl FromPrimitive for ThreadSyncError
source§impl Hash for ThreadSyncError
impl Hash for ThreadSyncError
source§impl Ord for ThreadSyncError
impl Ord for ThreadSyncError
source§fn cmp(&self, other: &ThreadSyncError) -> Ordering
fn cmp(&self, other: &ThreadSyncError) -> 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 ThreadSyncError
impl PartialEq for ThreadSyncError
source§impl PartialOrd for ThreadSyncError
impl PartialOrd for ThreadSyncError
impl Copy for ThreadSyncError
impl Eq for ThreadSyncError
impl StructuralPartialEq for ThreadSyncError
Auto Trait Implementations§
impl Freeze for ThreadSyncError
impl ObjSafe for ThreadSyncError
impl RefUnwindSafe for ThreadSyncError
impl Send for ThreadSyncError
impl Sync for ThreadSyncError
impl Unpin for ThreadSyncError
impl UnwindSafe for ThreadSyncError
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.