Struct meio::Distributor [−][src]
The set of multiple recipients that sends actions in parallel.
Implementations
impl<T> Distributor<T>
[src]
impl<T> Distributor<T> where
T: Action + Clone,
[src]
T: Action + Clone,
pub fn insert(&mut self, recipient: Box<dyn ActionRecipient<T>>)
[src]
Adds a Recipient
.
pub fn remove(&mut self, id: &Id) -> Option<Box<dyn ActionRecipient<T>>>
[src]
Remove the recipient by Id
.
pub async fn act_all(&mut self, action: T) -> Result<(), Error>
[src]
Sends action to all in parallel.
pub fn len(&self) -> usize
[src]
Size of the set of recipients.
pub fn is_empty(&self) -> bool
[src]
Is this set empty?
Trait Implementations
impl<T: Debug> Debug for Distributor<T>
[src]
impl<T> Default for Distributor<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for Distributor<T>
impl<T> Send for Distributor<T>
impl<T> !Sync for Distributor<T>
impl<T> Unpin for Distributor<T>
impl<T> !UnwindSafe for Distributor<T>
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,
pub 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.
pub 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>,