#[repr(u64)]pub enum NewHandleError {
Unknown = 0,
InvalidArgument = 1,
AlreadyHandle = 2,
NotFound = 3,
HandleSaturated = 4,
}
Expand description
Possible error values for sys_new_handle.
Variants§
Unknown = 0
An unknown error occurred.
InvalidArgument = 1
One of the arguments was invalid.
AlreadyHandle = 2
The specified object is already a handle.
NotFound = 3
The specified object was not found.
HandleSaturated = 4
The specified handle type is already saturated.
Trait Implementations§
source§impl Clone for NewHandleError
impl Clone for NewHandleError
source§fn clone(&self) -> NewHandleError
fn clone(&self) -> NewHandleError
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 NewHandleError
impl Debug for NewHandleError
source§impl Display for NewHandleError
impl Display for NewHandleError
source§impl Error for NewHandleError
impl Error for NewHandleError
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<NewHandleError> for u64
impl From<NewHandleError> for u64
source§fn from(enum_value: NewHandleError) -> Self
fn from(enum_value: NewHandleError) -> Self
Converts to this type from the input type.
source§impl From<u64> for NewHandleError
impl From<u64> for NewHandleError
source§impl FromPrimitive for NewHandleError
impl FromPrimitive for NewHandleError
source§impl Ord for NewHandleError
impl Ord for NewHandleError
source§fn cmp(&self, other: &NewHandleError) -> Ordering
fn cmp(&self, other: &NewHandleError) -> 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 NewHandleError
impl PartialEq for NewHandleError
source§impl PartialOrd for NewHandleError
impl PartialOrd for NewHandleError
impl Copy for NewHandleError
impl Eq for NewHandleError
impl StructuralPartialEq for NewHandleError
Auto Trait Implementations§
impl Freeze for NewHandleError
impl ObjSafe for NewHandleError
impl RefUnwindSafe for NewHandleError
impl Send for NewHandleError
impl Sync for NewHandleError
impl Unpin for NewHandleError
impl UnwindSafe for NewHandleError
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.