[−][src]Struct peril::HazardScope
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]
self,
current: HazardValue<'_, T>,
new: HazardValue<'registry, T>,
success: Ordering,
failure: Ordering
) -> Result<HazardValue<'registry, T>, HazardValue<'registry, T>>
pub fn compare_exchange(
self,
current: HazardValue<'_, T>,
new: HazardValue<'registry, T>,
success: Ordering,
failure: Ordering
) -> Result<HazardValue<'registry, T>, HazardValue<'registry, T>>
[src]
self,
current: HazardValue<'_, T>,
new: HazardValue<'registry, T>,
success: Ordering,
failure: Ordering
) -> Result<HazardValue<'registry, T>, HazardValue<'registry, T>>
pub fn swap(
self,
new: HazardValue<'registry, T>,
order: Ordering
) -> HazardValue<'registry, T>
[src]
self,
new: HazardValue<'registry, T>,
order: Ordering
) -> HazardValue<'registry, T>
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]
'registry: 'hazard,
impl<'registry, 'hazard, T> !UnwindSafe for HazardScope<'registry, 'hazard, T>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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.
pub 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>,