[][src]Struct reclaim::Guarded

pub struct Guarded<T, G, N: Unsigned> { /* fields omitted */ }

A guard type fused with a protected value.

Methods

impl<T, G: Protect, N: Unsigned> Guarded<T, G, N>[src]

pub fn shared(&self) -> Shared<T, G::Reclaimer, N>[src]

Returns a Shared reference borrowed from the Guarded.

pub fn into_guard(self) -> G[src]

Converts the Guarded into the internally stored guard.

If G does not implement ProtectRegion, the returned guard is guaranteed to be released before being returned.

Trait Implementations

impl<T: Debug, G: Debug, N: Debug + Unsigned> Debug for Guarded<T, G, N>[src]

Auto Trait Implementations

impl<T, G, N> !Send for Guarded<T, G, N>

impl<T, G, N> Unpin for Guarded<T, G, N> where
    G: Unpin,
    N: Unpin,
    T: Unpin

impl<T, G, N> !Sync for Guarded<T, G, N>

impl<T, G, N> UnwindSafe for Guarded<T, G, N> where
    G: UnwindSafe,
    N: UnwindSafe,
    T: RefUnwindSafe

impl<T, G, N> RefUnwindSafe for Guarded<T, G, N> where
    G: RefUnwindSafe,
    N: RefUnwindSafe,
    T: RefUnwindSafe

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]

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

type Output = T

Should always be Self