Recorder

Trait Recorder 

pub trait Recorder:
    Send
    + Sync
    + 'static {
    // Required methods
    fn record(
        &self,
        entry: Log,
    ) -> impl Future<Output = Option<Extensions>> + Send;
    fn stop_record(&self) -> impl Future<Output = ()> + Send;
}
Available on crate feature http only.

Required Methods§

fn record(&self, entry: Log) -> impl Future<Output = Option<Extensions>> + Send

fn stop_record(&self) -> impl Future<Output = ()> + Send

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§

§

impl Recorder for FileRecorder

§

impl<R> Recorder for Arc<R>
where R: Recorder,