pub trait AsDynProcessor {
    // Required method
    fn as_dyn_processor<'a>(
        self: Arc<Self>
    ) -> Arc<dyn Processor + Sync + Send + 'a>
       where Self: 'a;
}
Available on crate feature metrics only.
Expand description

A utility extension to allow upcasting.

Can be removed once trait_upcasting is stablized.

Required Methods§

source

fn as_dyn_processor<'a>( self: Arc<Self> ) -> Arc<dyn Processor + Sync + Send + 'a>where Self: 'a,

Create an Arc<dyn Processor> from an impl of Processor.

Implementors§

source§

impl<T> AsDynProcessor for Twhere T: Processor + Send + Sync,