Struct tracing_serde::SerdeStructVisitor [−][src]
Implements tracing_core::field::Visit
for some serde::ser::SerializeStruct
.
Implementations
impl<S: SerializeStruct> SerdeStructVisitor<S>
[src]
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.
Trait Implementations
impl<S: Debug + SerializeStruct> Debug for SerdeStructVisitor<S> where
S::Error: Debug,
[src]
S::Error: Debug,
impl<S> Visit for SerdeStructVisitor<S> where
S: SerializeStruct,
[src]
S: SerializeStruct,
fn record_bool(&mut self, field: &Field, value: bool)
[src]
fn record_debug(&mut self, field: &Field, value: &dyn Debug)
[src]
fn record_u64(&mut self, field: &Field, value: u64)
[src]
fn record_i64(&mut self, field: &Field, value: i64)
[src]
fn record_str(&mut self, field: &Field, value: &str)
[src]
pub fn record_error(&mut self, field: &Field, value: &(dyn Error + 'static))
[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for SerdeStructVisitor<S> where
S: RefUnwindSafe,
<S as SerializeStruct>::Error: RefUnwindSafe,
S: RefUnwindSafe,
<S as SerializeStruct>::Error: RefUnwindSafe,
impl<S> Send for SerdeStructVisitor<S> where
S: Send,
<S as SerializeStruct>::Error: Send,
S: Send,
<S as SerializeStruct>::Error: Send,
impl<S> Sync for SerdeStructVisitor<S> where
S: Sync,
<S as SerializeStruct>::Error: Sync,
S: Sync,
<S as SerializeStruct>::Error: Sync,
impl<S> Unpin for SerdeStructVisitor<S> where
S: Unpin,
<S as SerializeStruct>::Error: Unpin,
S: Unpin,
<S as SerializeStruct>::Error: Unpin,
impl<S> UnwindSafe for SerdeStructVisitor<S> where
S: UnwindSafe,
<S as SerializeStruct>::Error: UnwindSafe,
S: UnwindSafe,
<S as SerializeStruct>::Error: 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,
pub 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.
pub 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>,