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