pub struct FilterChain { /* private fields */ }Expand description
Filter chain for combining multiple filters
Implementations§
Source§impl FilterChain
impl FilterChain
Sourcepub fn add_filter(self, filter: MessageFilter) -> Self
pub fn add_filter(self, filter: MessageFilter) -> Self
Add a filter to the chain
Sourcepub fn should_deliver(
&self,
message: &Message,
connection_id: &ConnectionId,
) -> bool
pub fn should_deliver( &self, message: &Message, connection_id: &ConnectionId, ) -> bool
Check if a message should be delivered
Auto Trait Implementations§
impl Freeze for FilterChain
impl !RefUnwindSafe for FilterChain
impl Send for FilterChain
impl Sync for FilterChain
impl Unpin for FilterChain
impl UnsafeUnpin for FilterChain
impl !UnwindSafe for FilterChain
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