Struct tracing_capture::predicates::MessagePredicate
source · pub struct MessagePredicate<P> { /* private fields */ }
Expand description
Predicate for the message of a CapturedEvent
returned by the message()
function.
Trait Implementations§
source§impl<Rhs, P> BitAnd<Rhs> for MessagePredicate<P>where
Self: PredicateReflection,
Rhs: PredicateReflection,
impl<Rhs, P> BitAnd<Rhs> for MessagePredicate<P>where
Self: PredicateReflection,
Rhs: PredicateReflection,
source§impl<Rhs, P> BitOr<Rhs> for MessagePredicate<P>where
Self: PredicateReflection,
Rhs: PredicateReflection,
impl<Rhs, P> BitOr<Rhs> for MessagePredicate<P>where
Self: PredicateReflection,
Rhs: PredicateReflection,
source§impl<P: Clone> Clone for MessagePredicate<P>
impl<P: Clone> Clone for MessagePredicate<P>
source§fn clone(&self) -> MessagePredicate<P>
fn clone(&self) -> MessagePredicate<P>
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<P: Debug> Debug for MessagePredicate<P>
impl<P: Debug> Debug for MessagePredicate<P>
source§impl<P: PartialEq> PartialEq for MessagePredicate<P>
impl<P: PartialEq> PartialEq for MessagePredicate<P>
source§impl<P: Predicate<str>> Predicate<CapturedEvent<'_>> for MessagePredicate<P>
impl<P: Predicate<str>> Predicate<CapturedEvent<'_>> for MessagePredicate<P>
source§fn eval(&self, variable: &CapturedEvent<'_>) -> bool
fn eval(&self, variable: &CapturedEvent<'_>) -> bool
Execute this
Predicate
against variable
, returning the resulting
boolean.source§impl<P: Predicate<str>> PredicateReflection for MessagePredicate<P>
impl<P: Predicate<str>> PredicateReflection for MessagePredicate<P>
impl<P: Copy> Copy for MessagePredicate<P>
impl<P: Eq> Eq for MessagePredicate<P>
impl<P> StructuralPartialEq for MessagePredicate<P>
Auto Trait Implementations§
impl<P> Freeze for MessagePredicate<P>where
P: Freeze,
impl<P> RefUnwindSafe for MessagePredicate<P>where
P: RefUnwindSafe,
impl<P> Send for MessagePredicate<P>where
P: Send,
impl<P> Sync for MessagePredicate<P>where
P: Sync,
impl<P> Unpin for MessagePredicate<P>where
P: Unpin,
impl<P> UnwindSafe for MessagePredicate<P>where
P: UnwindSafe,
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<P, Item> PredicateBooleanExt<Item> for P
impl<P, Item> PredicateBooleanExt<Item> for P
source§fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>
fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>
Compute the logical AND of two
Predicate
results, returning the result. Read moresource§fn or<B>(self, other: B) -> OrPredicate<Self, B, Item>
fn or<B>(self, other: B) -> OrPredicate<Self, B, Item>
Compute the logical OR of two
Predicate
results, returning the result. Read more