pub struct TracingVerdict<T: Tracer, V: VerdictRepresentation> {
pub tracer: T,
pub verdict: V,
}Expand description
A generic VerdictRepresentation suitable to use with any tracer.
Fields§
§tracer: TThe contained tracing information.
verdict: VThe verdict given in the chosen VerdictRepresentation
Trait Implementations§
Source§impl<T: Clone + Tracer, V: Clone + VerdictRepresentation> Clone for TracingVerdict<T, V>
impl<T: Clone + Tracer, V: Clone + VerdictRepresentation> Clone for TracingVerdict<T, V>
Source§fn clone(&self) -> TracingVerdict<T, V>
fn clone(&self) -> TracingVerdict<T, V>
Returns a duplicate 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<T: Debug + Tracer, V: Debug + VerdictRepresentation> Debug for TracingVerdict<T, V>
impl<T: Debug + Tracer, V: Debug + VerdictRepresentation> Debug for TracingVerdict<T, V>
Source§impl<T: Tracer, V: VerdictRepresentation<Tracing = NoTracer>> VerdictRepresentation for TracingVerdict<T, V>
impl<T: Tracer, V: VerdictRepresentation<Tracing = NoTracer>> VerdictRepresentation for TracingVerdict<T, V>
Source§type Tracing = T
type Tracing = T
This subtype captures the tracing capabilities of the verdict representation.
Source§fn create(data: RawVerdict<'_>) -> Self
fn create(data: RawVerdict<'_>) -> Self
Creates a snapshot of the streams values.
Source§fn create_with_trace(data: RawVerdict<'_>, tracing: Self::Tracing) -> Self
fn create_with_trace(data: RawVerdict<'_>, tracing: Self::Tracing) -> Self
Creates a snapshot of the streams values including tracing data.
Auto Trait Implementations§
impl<T, V> Freeze for TracingVerdict<T, V>
impl<T, V> RefUnwindSafe for TracingVerdict<T, V>where
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<T, V> Send for TracingVerdict<T, V>
impl<T, V> Sync for TracingVerdict<T, V>
impl<T, V> Unpin for TracingVerdict<T, V>
impl<T, V> UnwindSafe for TracingVerdict<T, V>where
T: UnwindSafe,
V: 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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more