pub struct TraceFilter(/* private fields */);Expand description
Which operation types tracing skips.
Every bit excludes an operation type from the trace, so
TraceFilter::empty traces everything and
TraceFilter::GET | TraceFilter::MULTI_GET traces everything except point
lookups. Filtering happens before sampling.
Mirrors TraceFilterType in include/rocksdb/options.h. Bits that this
version of RocksDB does not define are preserved rather than rejected, so a
value read back from TraceOptions::get_filter always round-trips.
Implementations§
Source§impl TraceFilter
impl TraceFilter
Sourcepub const ITERATOR_SEEK: Self
pub const ITERATOR_SEEK: Self
Exclude Iterator::Seek.
Sourcepub const ITERATOR_SEEK_FOR_PREV: Self
pub const ITERATOR_SEEK_FOR_PREV: Self
Exclude Iterator::SeekForPrev.
Sourcepub const fn empty() -> Self
pub const fn empty() -> Self
A filter that excludes nothing, the same as TraceFilter::NONE.
Sourcepub const fn from_bits_retain(bits: u64) -> Self
pub const fn from_bits_retain(bits: u64) -> Self
Builds a filter from a raw bitmask, keeping bits this crate does not know about instead of dropping them.
Trait Implementations§
Source§impl BitOr for TraceFilter
impl BitOr for TraceFilter
Source§impl BitOrAssign for TraceFilter
impl BitOrAssign for TraceFilter
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl Clone for TraceFilter
impl Clone for TraceFilter
Source§fn clone(&self) -> TraceFilter
fn clone(&self) -> TraceFilter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TraceFilter
Source§impl Debug for TraceFilter
impl Debug for TraceFilter
impl Eq for TraceFilter
Source§impl PartialEq for TraceFilter
impl PartialEq for TraceFilter
impl StructuralPartialEq for TraceFilter
Auto Trait Implementations§
impl Freeze for TraceFilter
impl RefUnwindSafe for TraceFilter
impl Send for TraceFilter
impl Sync for TraceFilter
impl Unpin for TraceFilter
impl UnsafeUnpin for TraceFilter
impl UnwindSafe for TraceFilter
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