value_bag::fill

Trait Fill

source
pub trait Fill {
    // Required method
    fn fill(&self, slot: Slot<'_, '_>) -> Result<(), Error>;
}
Expand description

A type that requires extra work to convert into a ValueBag.

This trait is an advanced initialization API. It’s intended for erased values coming from other logging frameworks that may need to perform extra work to determine the concrete type to use.

Required Methods§

source

fn fill(&self, slot: Slot<'_, '_>) -> Result<(), Error>

Fill a value.

Implementors§

source§

impl<F> Fill for F
where F: Fn(Slot<'_, '_>) -> Result<(), Error>,