Trait slog::Value
[−]
[src]
pub trait Value {
fn serialize(&self,
record: &Record,
key: Key,
serializer: &mut Serializer)
-> Result;
}Value that can be serialized
Required Methods
fn serialize(&self,
record: &Record,
key: Key,
serializer: &mut Serializer)
-> Result
record: &Record,
key: Key,
serializer: &mut Serializer)
-> Result
Serialize self into Serializer
Structs implementing this trait should generally
only call respective methods of serializer.
Implementors
impl Value for usizeimpl Value for isizeimpl Value for boolimpl Value for charimpl Value for u8impl Value for i8impl Value for u16impl Value for i16impl Value for u32impl Value for i32impl Value for f32impl Value for u64impl Value for i64impl Value for f64impl Value for ()impl Value for strimpl<'a> Value for &'a strimpl<'a> Value for &'a Arguments<'a>impl Value for Stringimpl<T: Value> Value for Option<T>impl Value for Box<Value + 'static>impl<T: ?Sized> Value for Arc<T> where T: Valueimpl<T> Value for Rc<T> where T: Valueimpl<T> Value for Wrapping<T> where T: Valueimpl<V: 'static + Value, F> Value for F where F: 'static + for<'c, 'd> Fn(&'c Record<'d>) -> Vimpl<V: 'static + Value, F> Value for FnValue<V, F> where F: 'static + for<'c, 'd> Fn(&'c Record<'d>) -> Vimpl<F> Value for PushFnValue<F> where F: 'static + for<'c, 'd> Fn(&'c Record<'d>, PushFnSerializer<'c>) -> Result