[−][src]Struct reclaim::Guarded
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]
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
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,
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,
G: UnwindSafe,
N: UnwindSafe,
T: RefUnwindSafe,
impl<T, G, N> RefUnwindSafe for Guarded<T, G, N> where
G: RefUnwindSafe,
N: RefUnwindSafe,
T: RefUnwindSafe,
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self