Struct tracing_serde::SerdeMapVisitor[][src]

pub struct SerdeMapVisitor<S: SerializeMap> { /* fields omitted */ }

Implements tracing_core::field::Visit for some serde::ser::SerializeMap.

Implementations

impl<S> SerdeMapVisitor<S> where
    S: SerializeMap
[src]

pub fn new(serializer: S) -> Self[src]

Create a new map visitor.

pub fn finish(self) -> Result<S::Ok, S::Error>[src]

Completes serializing the visited object, returning Ok(()) if all fields were serialized correctly, or Error(S::Error) if a field could not be serialized.

pub fn take_serializer(self) -> Result<S, S::Error>[src]

Completes serializing the visited object, returning ownership of the underlying serializer if all fields were serialized correctly, or Err(S::Error) if a field could not be serialized.

Trait Implementations

impl<S: Debug + SerializeMap> Debug for SerdeMapVisitor<S> where
    S::Error: Debug
[src]

impl<S> Visit for SerdeMapVisitor<S> where
    S: SerializeMap
[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for SerdeMapVisitor<S> where
    S: RefUnwindSafe,
    <S as SerializeMap>::Error: RefUnwindSafe

impl<S> Send for SerdeMapVisitor<S> where
    S: Send,
    <S as SerializeMap>::Error: Send

impl<S> Sync for SerdeMapVisitor<S> where
    S: Sync,
    <S as SerializeMap>::Error: Sync

impl<S> Unpin for SerdeMapVisitor<S> where
    S: Unpin,
    <S as SerializeMap>::Error: Unpin

impl<S> UnwindSafe for SerdeMapVisitor<S> where
    S: UnwindSafe,
    <S as SerializeMap>::Error: 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.