Struct indigo::sync::AtomicI16[][src]

pub struct AtomicI16 { /* fields omitted */ }

An awaitable atomic i16.

Implementations

impl AtomicI16[src]

pub fn new(value: i16) -> Self[src]

Creates an atomic version of the given value.

pub fn load(&self) -> i16[src]

Loads the current value.

pub fn store(&self, value: i16)[src]

Stores the given value.

pub fn swap(&self, value: i16) -> i16[src]

Stores the given value and returns the previous value.

pub async fn until_eq(&self, value: i16)[src]

Waits until the current value is equal to the given value.

pub async fn until(&self, predicate: impl FnMut(i16) -> bool) -> i16[src]

Waits until the value matches a predicate.

Trait Implementations

impl Default for AtomicI16[src]

impl From<i16> for AtomicI16[src]

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,