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]
fn serialize<'b, S: 'b + Value>(self, s: S) -> Result
Deprecated
: Renamed to emit
Emit a value
fn emit<'b, S: 'b + Value>(self, s: S) -> Result
Emit a value
This consumes self
to prevent serializing one value multiple times