Struct single_executor::AtomicU64State[][src]

#[repr(transparent)]
pub struct AtomicU64State<T> { /* fields omitted */ }
Expand description

An atomic that stores a given state in a $raw_type

Implementations

impl<T> AtomicU64State<T> where
    u64: From<T>, 
[src]

pub fn new(state: T) -> Self[src]

Analog for [$atomic_type::new].

pub fn store(&self, state: T, ordering: Ordering)[src]

Analog for [$atomic_type::store].

impl<T> AtomicU64State<T> where
    T: From<u64>, 
[src]

pub fn load(&self, ordering: Ordering) -> T[src]

Analog for [$atomic_type::load].

pub fn into_inner(self) -> T[src]

Analog for [$atomic_type::into_inner].

impl<T> AtomicU64State<T> where
    T: From<u64>,
    u64: From<T>, 
[src]

pub fn set(&mut self, modify_func: impl FnOnce(T) -> T)[src]

Analog for [$atomic_type::get_mut].

pub fn swap(&self, state: T, ordering: Ordering) -> T[src]

Analog for [$atomic_type::swap].

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

Analog for [$atomic_type::compare_exchange].

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

Analog for [$atomic_type::compare_exchange_weak].

pub fn fetch_update(
    &self,
    set_order: Ordering,
    fetch_order: Ordering,
    f: impl FnMut(T) -> Option<T>
) -> Result<T, T>
[src]

Analog for [$atomic_type::fetch_update].

Trait Implementations

impl<T: Debug> Debug for AtomicU64State<T>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> RefUnwindSafe for AtomicU64State<T>

impl<T> Send for AtomicU64State<T>

impl<T> Sync for AtomicU64State<T>

impl<T> Unpin for AtomicU64State<T>

impl<T> UnwindSafe for AtomicU64State<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.