pub struct RecordKindFilter { /* private fields */ }Expand description
This implementation of RecordFilter trait accepts allowed log record kinds (RecordKind) array during
construction and its check method returns true if received log record kind presented inside this array.
Implementations§
Source§impl RecordKindFilter
impl RecordKindFilter
Sourcepub fn new(kinds: &'static [RecordKind]) -> Self
pub fn new(kinds: &'static [RecordKind]) -> Self
Construct a new instance of RecordKindFilter using provided array of allowed log record kinds (RecordKind).
Trait Implementations§
Source§impl Debug for RecordKindFilter
impl Debug for RecordKindFilter
Source§impl RecordFilter for Box<RecordKindFilter>
impl RecordFilter for Box<RecordKindFilter>
Source§impl RecordFilter for RecordKindFilter
impl RecordFilter for RecordKindFilter
Auto Trait Implementations§
impl Freeze for RecordKindFilter
impl RefUnwindSafe for RecordKindFilter
impl Send for RecordKindFilter
impl Sync for RecordKindFilter
impl Unpin for RecordKindFilter
impl UnwindSafe for RecordKindFilter
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