pub struct GroupReplyFilter { /* private fields */ }Expand description
Registry of group reply policies keyed by channel name.
Implementations§
Source§impl GroupReplyFilter
impl GroupReplyFilter
pub fn new() -> Self
pub fn with_policy( self, channel: impl Into<String>, policy: GroupReplyPolicy, ) -> Self
pub fn set_policy( &mut self, channel: impl Into<String>, policy: GroupReplyPolicy, )
Sourcepub fn should_process(&self, msg: &ChannelMessage) -> bool
pub fn should_process(&self, msg: &ChannelMessage) -> bool
Check if a message should be processed according to the group reply policy. Returns true if the message should be processed, false if it should be dropped.
Trait Implementations§
Source§impl Clone for GroupReplyFilter
impl Clone for GroupReplyFilter
Source§fn clone(&self) -> GroupReplyFilter
fn clone(&self) -> GroupReplyFilter
Returns a duplicate 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 GroupReplyFilter
impl Debug for GroupReplyFilter
Source§impl Default for GroupReplyFilter
impl Default for GroupReplyFilter
Source§fn default() -> GroupReplyFilter
fn default() -> GroupReplyFilter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GroupReplyFilter
impl RefUnwindSafe for GroupReplyFilter
impl Send for GroupReplyFilter
impl Sync for GroupReplyFilter
impl Unpin for GroupReplyFilter
impl UnsafeUnpin for GroupReplyFilter
impl UnwindSafe for GroupReplyFilter
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