Enum twizzler_abi::syscall::ObjectMapError
source · #[repr(u64)]pub enum ObjectMapError {
Unknown,
ObjectNotFound,
InvalidSlot,
InvalidProtections,
InvalidArgument,
}
Expand description
Possible error values for sys_object_map.
Variants§
Unknown
An unknown error occurred.
ObjectNotFound
The specified object was not found.
InvalidSlot
The specified slot was invalid.
InvalidProtections
The specified protections were invalid.
InvalidArgument
An argument was invalid.
Trait Implementations§
source§impl Clone for ObjectMapError
impl Clone for ObjectMapError
source§fn clone(&self) -> ObjectMapError
fn clone(&self) -> ObjectMapError
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 ObjectMapError
impl Debug for ObjectMapError
source§impl Display for ObjectMapError
impl Display for ObjectMapError
source§impl Error for ObjectMapError
impl Error for ObjectMapError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ObjectMapError> for u64
impl From<ObjectMapError> for u64
source§fn from(enum_value: ObjectMapError) -> Self
fn from(enum_value: ObjectMapError) -> Self
Converts to this type from the input type.
source§impl From<u64> for ObjectMapError
impl From<u64> for ObjectMapError
source§impl FromPrimitive for ObjectMapError
impl FromPrimitive for ObjectMapError
source§impl Ord for ObjectMapError
impl Ord for ObjectMapError
source§fn cmp(&self, other: &ObjectMapError) -> Ordering
fn cmp(&self, other: &ObjectMapError) -> 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<ObjectMapError> for ObjectMapError
impl PartialEq<ObjectMapError> for ObjectMapError
source§fn eq(&self, other: &ObjectMapError) -> bool
fn eq(&self, other: &ObjectMapError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ObjectMapError> for ObjectMapError
impl PartialOrd<ObjectMapError> for ObjectMapError
source§fn partial_cmp(&self, other: &ObjectMapError) -> Option<Ordering>
fn partial_cmp(&self, other: &ObjectMapError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ObjectMapError
impl Eq for ObjectMapError
impl StructuralEq for ObjectMapError
impl StructuralPartialEq for ObjectMapError
Auto Trait Implementations§
impl ObjSafe for ObjectMapError
impl RefUnwindSafe for ObjectMapError
impl Send for ObjectMapError
impl Sync for ObjectMapError
impl Unpin for ObjectMapError
impl UnwindSafe for ObjectMapError
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