Enum ffi_support::handle_map::HandleError[][src]

pub enum HandleError {
    NullHandle,
    InvalidHandle,
    StaleVersion,
    IndexPastEnd,
    WrongMap,
}

An error representing the ways a Handle may be invalid.

Variants

NullHandle

Identical to invalid handle, but has a slightly more helpful message for the most common case 0.

InvalidHandle

Returned from Handle::from_u64 if Handle::is_valid fails.

StaleVersion

Returned from get/get_mut/delete if the handle is stale (this indicates something equivalent to a use-after-free / double-free, etc).

IndexPastEnd

Returned if the handle index references an index past the end of the HandleMap.

WrongMap

The handle has a map_id for a different map than the one it was attempted to be used with.

Trait Implementations

impl Clone for HandleError[src]

impl Debug for HandleError[src]

impl Display for HandleError[src]

impl Eq for HandleError[src]

impl Error for HandleError[src]

impl From<HandleError> for ExternError[src]

impl Ord for HandleError[src]

impl PartialEq<HandleError> for HandleError[src]

impl PartialOrd<HandleError> for HandleError[src]

impl StructuralEq for HandleError[src]

impl StructuralPartialEq for HandleError[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.