[][src]Struct statsrelay::shard::Ring

pub struct Ring<C: Send + Sync + 'static> { /* fields omitted */ }

Implementations

impl<C: Send + Sync + 'static> Ring<C>[src]

pub fn new() -> Self[src]

pub fn push(&mut self, c: C)[src]

pub fn len(&self) -> usize[src]

pub fn pick_from(&self, code: u32) -> &C[src]

pub fn act_on<F>(&mut self, code: u32, f: F) where
    F: FnMut(&mut C), 
[src]

pub fn swap(&mut self, other: Ring<C>)[src]

Auto Trait Implementations

impl<C> RefUnwindSafe for Ring<C> where
    C: RefUnwindSafe

impl<C> Send for Ring<C>

impl<C> Sync for Ring<C>

impl<C> Unpin for Ring<C> where
    C: Unpin

impl<C> UnwindSafe for Ring<C> where
    C: 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> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.