pub enum ObjectInitError {
InvalidId,
OutOfSlots,
MappingFailed,
InvalidProtections,
ObjectNotFound,
}
Expand description
Possible errors from initializing an object handle.
Variants§
InvalidId
The ID isn’t valid.
OutOfSlots
There are not enough memory slots.
MappingFailed
The mapping failed.
InvalidProtections
The requested protections are invalid.
ObjectNotFound
The object doesn’t exist.
Trait Implementations§
source§impl Clone for ObjectInitError
impl Clone for ObjectInitError
source§fn clone(&self) -> ObjectInitError
fn clone(&self) -> ObjectInitError
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 ObjectInitError
impl Debug for ObjectInitError
source§impl From<MapError> for ObjectInitError
impl From<MapError> for ObjectInitError
source§impl From<ObjectMapError> for ObjectInitError
impl From<ObjectMapError> for ObjectInitError
source§fn from(x: ObjectMapError) -> Self
fn from(x: ObjectMapError) -> Self
Converts to this type from the input type.
impl Copy for ObjectInitError
Auto Trait Implementations§
impl Freeze for ObjectInitError
impl ObjSafe for ObjectInitError
impl RefUnwindSafe for ObjectInitError
impl Send for ObjectInitError
impl Sync for ObjectInitError
impl Unpin for ObjectInitError
impl UnwindSafe for ObjectInitError
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
)