Enum ffi_support::handle_map::HandleError [−][src]
pub enum HandleError { NullHandle, InvalidHandle, StaleVersion, IndexPastEnd, WrongMap, }
Expand description
An error representing the ways a Handle
may be invalid.
Variants
Identical to invalid handle, but has a slightly more helpful message for the most common case 0.
Returned from Handle::from_u64
if Handle::is_valid
fails.
Returned from get/get_mut/delete if the handle is stale (this indicates something equivalent to a use-after-free / double-free, etc).
Returned if the handle index references an index past the end of the HandleMap.
The handle has a map_id for a different map than the one it was attempted to be used with.
Trait Implementations
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for HandleError
impl Send for HandleError
impl Sync for HandleError
impl Unpin for HandleError
impl UnwindSafe for HandleError
Blanket Implementations
Mutably borrows from an owned value. Read more