Trait slog::ser::Serializer [] [src]

pub trait Serializer {
    fn emit_bool(&mut self, key: &'static str, val: bool) -> Result;
    fn emit_unit(&mut self, key: &'static str) -> Result;
    fn emit_none(&mut self, key: &'static str) -> Result;
    fn emit_char(&mut self, key: &'static str, val: char) -> Result;
    fn emit_u8(&mut self, key: &'static str, val: u8) -> Result;
    fn emit_i8(&mut self, key: &'static str, val: i8) -> Result;
    fn emit_u16(&mut self, key: &'static str, val: u16) -> Result;
    fn emit_i16(&mut self, key: &'static str, val: i16) -> Result;
    fn emit_u32(&mut self, key: &'static str, val: u32) -> Result;
    fn emit_i32(&mut self, key: &'static str, val: i32) -> Result;
    fn emit_f32(&mut self, key: &'static str, val: f32) -> Result;
    fn emit_u64(&mut self, key: &'static str, val: u64) -> Result;
    fn emit_i64(&mut self, key: &'static str, val: i64) -> Result;
    fn emit_f64(&mut self, key: &'static str, val: f64) -> Result;
    fn emit_usize(&mut self, key: &'static str, val: usize) -> Result;
    fn emit_isize(&mut self, key: &'static str, val: isize) -> Result;
    fn emit_str(&mut self, key: &'static str, val: &str) -> Result;
    fn emit_arguments(&mut self, key: &'static str, val: &Arguments) -> Result;
}

Serializer

Drains using Format will internally use types implementing this trait.

Required Methods

Emit bool

Emit ()

Emit None

Emit char

Emit u8

Emit i8

Emit u16

Emit i16

Emit u32

Emit i32

Emit f32

Emit u64

Emit i64

Emit f64

Emit usize

Emit isize

Emit str

Emit fmt::Arguments

Implementors