[][src]Struct aeron_rs::concurrent::atomic_vec::AtomicVec

pub struct AtomicVec<T: Clone> { /* fields omitted */ }

AtomicVec stores elements of type T and provides thread safe operations on Vec. Atomic behavior provided on AtomicVec as a whole.

Methods

impl<T: Clone> AtomicVec<T>[src]

pub fn new() -> Self[src]

pub fn load(&self) -> &Vec<T>[src]

pub fn load_mut(&mut self) -> &mut Vec<T>[src]

pub fn load_val(&mut self) -> Vec<T>[src]

pub fn store(&mut self, new_value: Vec<T>)[src]

pub fn add(&mut self, item: T) -> Vec<T>[src]

pub fn remove(
    &mut self,
    matching_fn: impl Fn(&mut T) -> bool
) -> Option<(Vec<T>, Index)>
[src]

Removes first element for which matching_fn returns true. Returns tuple (OldVector, position_of_deleted_item)

Trait Implementations

impl<T: Default + Clone> Default for AtomicVec<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for AtomicVec<T> where
    T: RefUnwindSafe

impl<T> Send for AtomicVec<T> where
    T: Send

impl<T> Sync for AtomicVec<T> where
    T: Sync

impl<T> Unpin for AtomicVec<T> where
    T: Unpin

impl<T> UnwindSafe for AtomicVec<T> where
    T: UnwindSafe

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.