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;
}

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.

Implementations on Foreign Types§

§

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

§

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

§

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

Implementors§