[][src]Struct atomic_destroy::Value

pub struct Value<T, R: Deref<Target = AtomicDestroy<T>>> { /* fields omitted */ }

A "locked" value of an AtomicDestroy. While one of these exists the value inside the AtomicDestroy is guaranteed not to be dropped.

Implementations

impl<T, R: Deref<Target = AtomicDestroy<T>>> Value<T, R>[src]

pub fn new(inner: R) -> Option<Self>[src]

Get the value of an atomic destroyable. Equivalent to AtomicDestroy::get.

Trait Implementations

impl<T: Debug, R: Debug + Deref<Target = AtomicDestroy<T>>> Debug for Value<T, R>[src]

impl<T, R: Deref<Target = AtomicDestroy<T>>> Deref for Value<T, R>[src]

type Target = T

The resulting type after dereferencing.

impl<T, R: Deref<Target = AtomicDestroy<T>>> Drop for Value<T, R>[src]

Auto Trait Implementations

impl<T, R> Send for Value<T, R> where
    R: Send,
    T: Send

impl<T, R> Sync for Value<T, R> where
    R: Sync,
    T: Sync

impl<T, R> Unpin for Value<T, R> where
    R: Unpin,
    T: Unpin

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, 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.