pub trait MakeService {
    type Service;
    type Error;

    // Required method
    fn make_via_ref(
        &self,
        old: Option<&Self::Service>
    ) -> Result<Self::Service, Self::Error>;

    // Provided method
    fn make(&self) -> Result<Self::Service, Self::Error> { ... }
}

Required Associated Types§

Required Methods§

source

fn make_via_ref( &self, old: Option<&Self::Service> ) -> Result<Self::Service, Self::Error>

Provided Methods§

source

fn make(&self) -> Result<Self::Service, Self::Error>

Implementations on Foreign Types§

source§

impl<T: MakeService> MakeService for Arc<T>

§

type Service = <T as MakeService>::Service

§

type Error = <T as MakeService>::Error

source§

fn make_via_ref( &self, old: Option<&Self::Service> ) -> Result<Self::Service, Self::Error>

source§

impl<T: MakeService> MakeService for &T

§

type Service = <T as MakeService>::Service

§

type Error = <T as MakeService>::Error

source§

fn make_via_ref( &self, old: Option<&Self::Service> ) -> Result<Self::Service, Self::Error>

Implementors§

source§

impl<FAC, F> MakeService for MapTargetService<FAC, F>where FAC: MakeService, F: Clone,

source§

impl<T> MakeService for CloneFactory<T>where T: Clone,