pub struct RecordKindFilter { /* private fields */ }
Expand description
Implementation of RecordFilter
that accepts allowed RecordKind
array.
This implementation of the RecordFilter
trait accepts an array of allowed log record kinds (RecordKind
) during
construction. Its check
method returns true
if the received log record kind is present in 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