#[repr(u64)]pub enum ObjectControlError {
Unknown = 0,
InvalidArgument = 1,
InvalidID = 2,
}
Expand description
Possible error returns for sys_object_ctrl.
Variants§
Unknown = 0
An unknown error occurred.
InvalidArgument = 1
One of the arguments was invalid.
InvalidID = 2
Invalid object ID.
Trait Implementations§
source§impl Clone for ObjectControlError
impl Clone for ObjectControlError
source§fn clone(&self) -> ObjectControlError
fn clone(&self) -> ObjectControlError
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 ObjectControlError
impl Debug for ObjectControlError
source§impl Display for ObjectControlError
impl Display for ObjectControlError
source§impl Error for ObjectControlError
impl Error for ObjectControlError
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<ObjectControlError> for u64
impl From<ObjectControlError> for u64
source§fn from(enum_value: ObjectControlError) -> Self
fn from(enum_value: ObjectControlError) -> Self
Converts to this type from the input type.
source§impl From<u64> for ObjectControlError
impl From<u64> for ObjectControlError
source§impl FromPrimitive for ObjectControlError
impl FromPrimitive for ObjectControlError
source§impl Hash for ObjectControlError
impl Hash for ObjectControlError
source§impl Ord for ObjectControlError
impl Ord for ObjectControlError
source§fn cmp(&self, other: &ObjectControlError) -> Ordering
fn cmp(&self, other: &ObjectControlError) -> 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 ObjectControlError
impl PartialEq for ObjectControlError
source§impl PartialOrd for ObjectControlError
impl PartialOrd for ObjectControlError
impl Copy for ObjectControlError
impl Eq for ObjectControlError
impl StructuralPartialEq for ObjectControlError
Auto Trait Implementations§
impl Freeze for ObjectControlError
impl ObjSafe for ObjectControlError
impl RefUnwindSafe for ObjectControlError
impl Send for ObjectControlError
impl Sync for ObjectControlError
impl Unpin for ObjectControlError
impl UnwindSafe for ObjectControlError
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.