[][src]Struct tracing_subscriber::field::delimited::Delimited

pub struct Delimited<D, V> { /* fields omitted */ }

A MakeVisitor wrapper that wraps a visitor that writes formatted output so that a delimiter is inserted between writing formatted field values.

Implementations

impl<D, V> Delimited<D, V>[src]

pub fn new(delimiter: D, inner: V) -> Self[src]

Returns a new MakeVisitor implementation that wraps inner so that it will format each visited field separated by the provided delimiter.

Trait Implementations

impl<D: Clone, V: Clone> Clone for Delimited<D, V>[src]

impl<D: Debug, V: Debug> Debug for Delimited<D, V>[src]

impl<D, V, T> MakeVisitor<T> for Delimited<D, V> where
    D: AsRef<str> + Clone,
    V: MakeVisitor<T>,
    V::Visitor: VisitFmt
[src]

type Visitor = VisitDelimited<D, V::Visitor>

The visitor type produced by this MakeVisitor.

Auto Trait Implementations

impl<D, V> RefUnwindSafe for Delimited<D, V> where
    D: RefUnwindSafe,
    V: RefUnwindSafe

impl<D, V> Send for Delimited<D, V> where
    D: Send,
    V: Send

impl<D, V> Sync for Delimited<D, V> where
    D: Sync,
    V: Sync

impl<D, V> Unpin for Delimited<D, V> where
    D: Unpin,
    V: Unpin

impl<D, V> UnwindSafe for Delimited<D, V> where
    D: UnwindSafe,
    V: 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<'writer, M> FormatFields<'writer> for M where
    M: MakeOutput<&'writer mut (dyn Write + 'writer), Result<(), Error>>,
    <M as MakeVisitor<&'writer mut (dyn Write + 'writer)>>::Visitor: VisitFmt,
    <M as MakeVisitor<&'writer mut (dyn Write + 'writer)>>::Visitor: VisitOutput<Result<(), Error>>, 
[src]

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

impl<T> Instrument for T[src]

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

impl<T, M> MakeExt<T> for M where
    M: MakeVisitor<T> + Sealed<MakeExtMarker<T>>, 
[src]

impl<T, Out, M> MakeOutput<T, Out> for M where
    M: MakeVisitor<T>,
    <M as MakeVisitor<T>>::Visitor: VisitOutput<Out>, 
[src]

impl<T, V, F> MakeVisitor<T> for F where
    F: Fn(T) -> V,
    V: Visit
[src]

type Visitor = V

The visitor type produced by this MakeVisitor.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.