Trait slog::Serializer [−][src]
Serializer
Drains using Format
will internally use
types implementing this trait.
Required methods
fn emit_arguments(&mut self, key: Key, val: &Arguments<'_>) -> Result
[src]
Emit fmt::Arguments
This is the only method that has to implemented, but for performance and
to retain type information most serious Serializer
s will want to
implement all other methods as well.
Provided methods
fn emit_usize(&mut self, key: Key, val: usize) -> Result
[src]
Emit usize
fn emit_isize(&mut self, key: Key, val: isize) -> Result
[src]
Emit isize
fn emit_bool(&mut self, key: Key, val: bool) -> Result
[src]
Emit bool
fn emit_char(&mut self, key: Key, val: char) -> Result
[src]
Emit char
fn emit_u8(&mut self, key: Key, val: u8) -> Result
[src]
Emit u8
fn emit_i8(&mut self, key: Key, val: i8) -> Result
[src]
Emit i8
fn emit_u16(&mut self, key: Key, val: u16) -> Result
[src]
Emit u16
fn emit_i16(&mut self, key: Key, val: i16) -> Result
[src]
Emit i16
fn emit_u32(&mut self, key: Key, val: u32) -> Result
[src]
Emit u32
fn emit_i32(&mut self, key: Key, val: i32) -> Result
[src]
Emit i32
fn emit_f32(&mut self, key: Key, val: f32) -> Result
[src]
Emit f32
fn emit_u64(&mut self, key: Key, val: u64) -> Result
[src]
Emit u64
fn emit_i64(&mut self, key: Key, val: i64) -> Result
[src]
Emit i64
fn emit_f64(&mut self, key: Key, val: f64) -> Result
[src]
Emit f64
fn emit_u128(&mut self, key: Key, val: u128) -> Result
[src]
Emit u128
fn emit_i128(&mut self, key: Key, val: i128) -> Result
[src]
Emit i128
fn emit_str(&mut self, key: Key, val: &str) -> Result
[src]
Emit &str
fn emit_unit(&mut self, key: Key) -> Result
[src]
Emit ()
fn emit_none(&mut self, key: Key) -> Result
[src]
Emit None