[][src]Trait remote_trait_object::ToDispatcher

pub trait ToDispatcher<T: ?Sized + Service> {
    fn to_dispatcher(self) -> Arc<dyn Dispatch>;
}

Unused T is for avoiding violation of the orphan rule T will be local type for the crate, and that makes it possible to

This example is not tested
impl ToDispatcher<dyn MyService> for Arc<dyn MyService>

Required methods

fn to_dispatcher(self) -> Arc<dyn Dispatch>

Loading content...

Implementations on Foreign Types

impl ToDispatcher<dyn NullService + 'static> for Box<dyn NullService>[src]

impl ToDispatcher<dyn NullService + 'static> for Arc<dyn NullService>[src]

impl ToDispatcher<dyn NullService + 'static> for Arc<RwLock<dyn NullService>>[src]

Loading content...

Implementors

Loading content...