[][src]Struct slog_glog_fmt::collector_serializer::CollectorSerializer

pub struct CollectorSerializer<'a, C: KVCategorizer>(_, _);

This serializer collects all KV pairs into a Vec, converting the values to String. It filters out the one that are of KVCategory::Ignore

Implementations

impl<'a, C: KVCategorizer> CollectorSerializer<'a, C>[src]

pub fn new(categorizer: &'a C) -> Self[src]

Create a collector serializer that will use the given categorizer to collect desired values

pub fn into_inner(self) -> Vec<(Key, String)>[src]

Once done collecting KV pairs call this to retrieve collected values

Trait Implementations

impl<'a, C: KVCategorizer> Serializer for CollectorSerializer<'a, C>[src]

pub fn emit_none(&mut self, key: Key) -> Result[src]

Emit None

pub fn emit_unit(&mut self, key: Key) -> Result[src]

Emit ()

pub fn emit_usize(&mut self, key: Key, val: usize) -> Result[src]

Emit $t

pub fn emit_isize(&mut self, key: Key, val: isize) -> Result[src]

Emit $t

pub fn emit_bool(&mut self, key: Key, val: bool) -> Result[src]

Emit $t

pub fn emit_char(&mut self, key: Key, val: char) -> Result[src]

Emit $t

pub fn emit_u8(&mut self, key: Key, val: u8) -> Result[src]

Emit $t

pub fn emit_i8(&mut self, key: Key, val: i8) -> Result[src]

Emit $t

pub fn emit_u16(&mut self, key: Key, val: u16) -> Result[src]

Emit $t

pub fn emit_i16(&mut self, key: Key, val: i16) -> Result[src]

Emit $t

pub fn emit_u32(&mut self, key: Key, val: u32) -> Result[src]

Emit $t

pub fn emit_i32(&mut self, key: Key, val: i32) -> Result[src]

Emit $t

pub fn emit_f32(&mut self, key: Key, val: f32) -> Result[src]

Emit $t

pub fn emit_u64(&mut self, key: Key, val: u64) -> Result[src]

Emit $t

pub fn emit_i64(&mut self, key: Key, val: i64) -> Result[src]

Emit $t

pub fn emit_f64(&mut self, key: Key, val: f64) -> Result[src]

Emit $t

pub fn emit_str(&mut self, key: Key, val: &str) -> Result[src]

Emit $t

pub fn emit_arguments(&mut self, key: Key, val: &Arguments<'_>) -> Result[src]

Emit $t

Auto Trait Implementations

impl<'a, C> RefUnwindSafe for CollectorSerializer<'a, C> where
    C: RefUnwindSafe
[src]

impl<'a, C> Send for CollectorSerializer<'a, C> where
    C: Sync
[src]

impl<'a, C> Sync for CollectorSerializer<'a, C> where
    C: Sync
[src]

impl<'a, C> Unpin for CollectorSerializer<'a, C>[src]

impl<'a, C> UnwindSafe for CollectorSerializer<'a, C> where
    C: RefUnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.