Struct slog::PushFnSerializer [] [src]

pub struct PushFnSerializer<'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.


impl<'a> PushFnSerializer<'a>

Serialize a value

This consumes self to prevent serializing one value multiple times

Trait Implementations

impl<'a> Drop for PushFnSerializer<'a>

A method called when the value goes out of scope. Read more