pub struct FlowControlOutgoingAccessControl { /* private fields */ }
Expand description
Flow Control Outgoing Access Control
Allows to send messages only to members of the given FlowControlId
or message a Spawner
with given FlowControlId
. Optionally, only 1 message can be passed to the Spawner.
Implementations§
source§impl FlowControlOutgoingAccessControl
impl FlowControlOutgoingAccessControl
sourcepub fn new(
flow_controls: &FlowControls,
flow_control_id: FlowControlId,
spawner_flow_control_id: Option<FlowControlId>
) -> Self
pub fn new( flow_controls: &FlowControls, flow_control_id: FlowControlId, spawner_flow_control_id: Option<FlowControlId> ) -> Self
Constructor
Trait Implementations§
source§impl OutgoingAccessControl for FlowControlOutgoingAccessControl
impl OutgoingAccessControl for FlowControlOutgoingAccessControl
Return true if the message is allowed to pass, and false if not.
Auto Trait Implementations§
impl Freeze for FlowControlOutgoingAccessControl
impl RefUnwindSafe for FlowControlOutgoingAccessControl
impl Send for FlowControlOutgoingAccessControl
impl Sync for FlowControlOutgoingAccessControl
impl Unpin for FlowControlOutgoingAccessControl
impl UnwindSafe for FlowControlOutgoingAccessControl
Blanket Implementations§
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