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 usize
impl Value for isize
impl Value for bool
impl Value for char
impl Value for u8
impl Value for i8
impl Value for u16
impl Value for i16
impl Value for u32
impl Value for i32
impl Value for f32
impl Value for u64
impl Value for i64
impl Value for f64
impl Value for ()
impl Value for str
impl<'a> Value for &'a str
impl<'a> Value for &'a Arguments<'a>
impl Value for String
impl<T: Value> Value for Option<T>
impl Value for Box<Value + 'static>
impl<T: ?Sized> Value for Arc<T> where T: Value
impl<T> Value for Rc<T> where T: Value
impl<T> Value for Wrapping<T> where T: Value
impl<V: 'static + Value, F> Value for F where F: 'static + for<'c, 'd> Fn(&'c Record<'d>) -> V
impl<V: 'static + Value, F> Value for FnValue<V, F> where F: 'static + for<'c, 'd> Fn(&'c Record<'d>) -> V
impl<F> Value for PushFnValue<F> where F: 'static + for<'c, 'd> Fn(&'c Record<'d>, PushFnSerializer<'c>) -> Result