pub enum FlowControlPolicy {
ProducerAllowMultiple,
SpawnerAllowOnlyOneMessage,
SpawnerAllowMultipleMessages,
}Expand description
Policy according to which a Consumer wants to receive messages from a Producer or Spawner
Variants§
ProducerAllowMultiple
Producer is allowed to send any number of messages to the Consumer
SpawnerAllowOnlyOneMessage
Spawner is allowed to send only one message to the Consumer
SpawnerAllowMultipleMessages
Spawner is allowed to send any number of messages to the Consumer
Trait Implementations§
source§impl Clone for FlowControlPolicy
impl Clone for FlowControlPolicy
source§fn clone(&self) -> FlowControlPolicy
fn clone(&self) -> FlowControlPolicy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for FlowControlPolicy
impl Debug for FlowControlPolicy
impl Copy for FlowControlPolicy
Auto Trait Implementations§
impl RefUnwindSafe for FlowControlPolicy
impl Send for FlowControlPolicy
impl Sync for FlowControlPolicy
impl Unpin for FlowControlPolicy
impl UnwindSafe for FlowControlPolicy
Blanket Implementations§
source§impl<D> AsyncTryClone for Dwhere
D: Clone + Sync,
impl<D> AsyncTryClone for Dwhere D: Clone + Sync,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more