Struct slog::PushFnValueSerializer [−][src]
pub struct PushFnValueSerializer<'a> { /* fields omitted */ }
Handle passed to PushFnValue
closure
It makes sure only one value is serialized, and will automatically emit
()
if nothing else was serialized.
Methods
impl<'a> PushFnValueSerializer<'a>
[src]
impl<'a> PushFnValueSerializer<'a>
pub fn serialize<'b, S: 'b + Value>(self, s: S) -> Result
[src]
pub fn serialize<'b, S: 'b + Value>(self, s: S) -> Result
Deprecated
: Renamed to emit
Emit a value
pub fn emit<'b, S: 'b + Value>(self, s: S) -> Result
[src]
pub fn emit<'b, S: 'b + Value>(self, s: S) -> Result
Emit a value
This consumes self
to prevent serializing one value multiple times
Trait Implementations
impl<'a> Drop for PushFnValueSerializer<'a>
[src]
impl<'a> Drop for PushFnValueSerializer<'a>
Auto Trait Implementations
impl<'a> !Send for PushFnValueSerializer<'a>
impl<'a> !Send for PushFnValueSerializer<'a>
impl<'a> !Sync for PushFnValueSerializer<'a>
impl<'a> !Sync for PushFnValueSerializer<'a>