[][src]Struct maxim::actors::RandomAidPool

pub struct RandomAidPool { /* fields omitted */ }

An AidPool that sends messages to a random Aid in the pool.

Methods

impl RandomAidPool[src]

pub fn new(aids: Vec<Aid>) -> Self[src]

Create a RandomAidPool from a vector of Aids

Trait Implementations

impl AidPool for RandomAidPool[src]

fn send(&mut self, message: Message) -> Result<(), AidError>[src]

fn send_arc<T>(&mut self, value: Arc<T>) -> Result<(), AidError> where
    T: 'static + ActorMessage
[src]

fn send_new<T>(&mut self, value: T) -> Result<(), AidError> where
    T: 'static + ActorMessage
[src]

fn send_after(
    &mut self,
    message: Message,
    duration: Duration
) -> Result<(), AidError>
[src]

fn send_arc_after<T>(
    &mut self,
    value: Arc<T>,
    duration: Duration
) -> Result<(), AidError> where
    T: 'static + ActorMessage
[src]

fn send_new_after<T>(
    &mut self,
    value: T,
    duration: Duration
) -> Result<(), AidError> where
    T: 'static + ActorMessage
[src]

impl Clone for RandomAidPool[src]

impl Debug for RandomAidPool[src]

impl From<Vec<Aid>> for RandomAidPool[src]

impl Into<Vec<Aid>> for RandomAidPool[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> Erased for T

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

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

impl<T> SyncAidPool for T where
    T: 'static + AidPool + Clone + Send + Sync
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,