[][src]Enum static_alloc::slab::Failure

pub enum Failure {
    Exhausted,
    Mismatch {
        observed: Level,
    },
}

Reason for a failed allocation at an exact Level.

Variants

Exhausted

No space left for that allocation.

Mismatch

The allocation would not have used the expected base location.

Reports the location that was observed. When only levels from the same slab are used (which should normally be the case) then the observed level is monotonically increasing.

Fields of Mismatch

observed: Level

The observed level that was different from the requested one.

Trait Implementations

impl Debug for Failure[src]

impl PartialEq<Failure> for Failure[src]

impl Eq for Failure[src]

impl Hash for Failure[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Copy for Failure[src]

impl Clone for Failure[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Unpin for Failure

impl Sync for Failure

impl Send for Failure

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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

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.

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

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

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