[][src]Enum verify::serde::NewSpan

pub enum NewSpan<S: Span> {
    Add(Option<S>),
    Reset(Option<S>),
    NoChange,
}
This is supported on feature="serde" only.

Type returned by Spans, it dictates how the newly returned spans should be used.

It is required because Spans support hierarchy and simply a None span will reset the existing hierarchy. Without this type resetting the hierarchy and providing a new span would not be possible.

Variants

Add(Option<S>)
This is supported on feature="serde" only.

Add the Span to the existing hierarchy. If it is None, the entire hierarchy is cleared.

Reset(Option<S>)
This is supported on feature="serde" only.

Reset the existing hierarchy then applies the new span.

NoChange
This is supported on feature="serde" only.

Do nothing, and use the existing hierarchy and span if there is any.

Auto Trait Implementations

impl<S> RefUnwindSafe for NewSpan<S> where
    S: RefUnwindSafe

impl<S> Send for NewSpan<S> where
    S: Send

impl<S> Sync for NewSpan<S> where
    S: Sync

impl<S> Unpin for NewSpan<S> where
    S: Unpin

impl<S> UnwindSafe for NewSpan<S> where
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.