pub struct GlobalFilter {
pub handle_standard_frames: NonMatchingFilter,
pub handle_extended_frames: NonMatchingFilter,
pub reject_remote_standard_frames: bool,
pub reject_remote_extended_frames: bool,
}
Expand description
How to handle frames which do not match a specific filter
Fields§
§handle_standard_frames: NonMatchingFilter
How to handle non-matching standard frames
handle_extended_frames: NonMatchingFilter
How to handle non-matching extended frames
reject_remote_standard_frames: bool
How to handle remote standard frames
reject_remote_extended_frames: bool
How to handle remote extended frames
Implementations§
Source§impl GlobalFilter
impl GlobalFilter
Sourcepub const fn reject_all() -> Self
pub const fn reject_all() -> Self
Reject all non-matching and remote frames
Sourcepub const fn set_handle_standard_frames(self, filter: NonMatchingFilter) -> Self
pub const fn set_handle_standard_frames(self, filter: NonMatchingFilter) -> Self
How to handle non-matching standard frames
Sourcepub const fn set_handle_extended_frames(self, filter: NonMatchingFilter) -> Self
pub const fn set_handle_extended_frames(self, filter: NonMatchingFilter) -> Self
How to handle non-matching exteded frames
Sourcepub const fn set_reject_remote_standard_frames(self, filter: bool) -> Self
pub const fn set_reject_remote_standard_frames(self, filter: bool) -> Self
How to handle remote standard frames
Sourcepub const fn set_reject_remote_extended_frames(self, filter: bool) -> Self
pub const fn set_reject_remote_extended_frames(self, filter: bool) -> Self
How to handle remote extended frames
Trait Implementations§
Source§impl Clone for GlobalFilter
impl Clone for GlobalFilter
Source§fn clone(&self) -> GlobalFilter
fn clone(&self) -> GlobalFilter
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 GlobalFilter
impl Debug for GlobalFilter
Source§impl Default for GlobalFilter
impl Default for GlobalFilter
impl Copy for GlobalFilter
Auto Trait Implementations§
impl Freeze for GlobalFilter
impl RefUnwindSafe for GlobalFilter
impl Send for GlobalFilter
impl Sync for GlobalFilter
impl Unpin for GlobalFilter
impl UnwindSafe for GlobalFilter
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