[−][src]Struct slog_glog_fmt::collector_serializer::CollectorSerializer
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
pub fn emit_u128(&mut self, key: &'static str, val: u128) -> Result<(), Error>
[src]
pub fn emit_i128(&mut self, key: &'static str, val: i128) -> Result<(), Error>
[src]
pub fn emit_error(
&mut self,
key: &'static str,
error: &(dyn Error + 'static)
) -> Result<(), Error>
[src]
&mut self,
key: &'static str,
error: &(dyn Error + 'static)
) -> Result<(), Error>
Auto Trait Implementations
impl<'a, C> RefUnwindSafe for CollectorSerializer<'a, C> where
C: RefUnwindSafe,
[src]
C: RefUnwindSafe,
impl<'a, C> Send for CollectorSerializer<'a, C> where
C: Sync,
[src]
C: Sync,
impl<'a, C> Sync for CollectorSerializer<'a, C> where
C: Sync,
[src]
C: Sync,
impl<'a, C> Unpin for CollectorSerializer<'a, C>
[src]
impl<'a, C> UnwindSafe for CollectorSerializer<'a, C> where
C: RefUnwindSafe,
[src]
C: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,