[−][src]Struct aeron_rs::concurrent::atomic_vec::AtomicVec
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]
&mut self,
matching_fn: impl Fn(&mut T) -> bool
) -> Option<(Vec<T>, Index)>
Removes first element for which matching_fn returns true. Returns tuple (OldVector, position_of_deleted_item)
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for AtomicVec<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for AtomicVec<T> where
T: Send,
T: Send,
impl<T> Sync for AtomicVec<T> where
T: Sync,
T: Sync,
impl<T> Unpin for AtomicVec<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for AtomicVec<T> where
T: UnwindSafe,
T: UnwindSafe,
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,
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.
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>,