WritableDatumConfig

Trait WritableDatumConfig 

Source
pub trait WritableDatumConfig<T, O>
where O: Output,
{ // Required method async fn write_datum( &self, datum: &T, output: &mut O, ) -> Result<(), O::Error>; }
Expand description

A helper object that writes other data, and not the object itself, on demand

Required Methods§

Source

async fn write_datum(&self, datum: &T, output: &mut O) -> Result<(), O::Error>

Writes an individual data point.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<F, T, W, O> WritableDatumConfig<T, O> for ExtractWritable<F>
where O: Output, for<'t> F: Fn(&'t T) -> W, W: Writable<O>,