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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)