[][src]Struct peril::HazardScope

pub struct HazardScope<'registry, 'hazard, T: 'static> { /* fields omitted */ }

Implementations

impl<'registry, 'hazard, T: 'static> HazardScope<'registry, 'hazard, T>[src]

pub fn compare_exchange_weak(
    self,
    current: HazardValue<'_, T>,
    new: HazardValue<'registry, T>,
    success: Ordering,
    failure: Ordering
) -> Result<HazardValue<'registry, T>, HazardValue<'registry, T>>
[src]

pub fn compare_exchange(
    self,
    current: HazardValue<'_, T>,
    new: HazardValue<'registry, T>,
    success: Ordering,
    failure: Ordering
) -> Result<HazardValue<'registry, T>, HazardValue<'registry, T>>
[src]

pub fn swap(
    self,
    new: HazardValue<'registry, T>,
    order: Ordering
) -> HazardValue<'registry, T>
[src]

pub fn swap_null(self, order: Ordering) -> HazardValue<'registry, T>[src]

pub fn store(self, new: HazardValue<'registry, T>, order: Ordering)[src]

pub fn as_ref(&self, order: Ordering) -> (HazardValue<'registry, T>, Option<&T>)[src]

Trait Implementations

impl<'registry, 'hazard, T: 'static> Drop for HazardScope<'registry, 'hazard, T>[src]

Auto Trait Implementations

impl<'registry, 'hazard, T> RefUnwindSafe for HazardScope<'registry, 'hazard, T>[src]

impl<'registry, 'hazard, T> Send for HazardScope<'registry, 'hazard, T>[src]

impl<'registry, 'hazard, T> Sync for HazardScope<'registry, 'hazard, T>[src]

impl<'registry, 'hazard, T> Unpin for HazardScope<'registry, 'hazard, T> where
    'registry: 'hazard, 
[src]

impl<'registry, 'hazard, T> !UnwindSafe for HazardScope<'registry, 'hazard, T>[src]

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.