[−][src]Enum verify::serde::NewSpan
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.Reset(Option<S>)
This is supported on
feature="serde"
only.Reset the existing hierarchy then applies the new span.
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,
S: RefUnwindSafe,
impl<S> Send for NewSpan<S> where
S: Send,
S: Send,
impl<S> Sync for NewSpan<S> where
S: Sync,
S: Sync,
impl<S> Unpin for NewSpan<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for NewSpan<S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,