Trait VerdictRepresentation

Source
pub trait VerdictRepresentation:
    Clone
    + Debug
    + Send
    + CondSerialize
    + 'static {
    type Tracing: Tracer;

    // Required methods
    fn create(data: RawVerdict<'_>) -> Self;
    fn is_empty(&self) -> bool;

    // Provided method
    fn create_with_trace(data: RawVerdict<'_>, _tracing: Self::Tracing) -> Self { ... }
}
Expand description

Provides the functionality to generate a snapshot of the streams values.

Required Associated Types§

Source

type Tracing: Tracer

This subtype captures the tracing capabilities of the verdict representation.

Required Methods§

Source

fn create(data: RawVerdict<'_>) -> Self

Creates a snapshot of the streams values.

Source

fn is_empty(&self) -> bool

Returns whether the verdict is empty. I.e. it doesn’t contain any information.

Provided Methods§

Source

fn create_with_trace(data: RawVerdict<'_>, _tracing: Self::Tracing) -> Self

Creates a snapshot of the streams values including tracing data.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§