[][src]Enum hulunbuir::slot::Take

pub enum Take<T> {
    Free(T),
    Busy(Parker),
}

The result of trying to take an object out.

Variants

Free(T)

The object is not in used.

Busy(Parker)

The object is currently used by others. You could block current thread until it is returned by calling Parker::park.

Auto Trait Implementations

impl<T> !Sync for Take<T>

impl<T> Send for Take<T> where
    T: Send

impl<T> Unpin for Take<T> where
    T: Unpin

impl<T> !RefUnwindSafe for Take<T>

impl<T> !UnwindSafe for Take<T>

Blanket Implementations

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

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

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

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

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