Trait dill::TypedBuilder

source ·
pub trait TypedBuilder<T: Send + Sync>: Builder {
    // Required method
    fn get(&self, cat: &Catalog) -> Result<Arc<T>, InjectionError>;
}

Required Methods§

source

fn get(&self, cat: &Catalog) -> Result<Arc<T>, InjectionError>

Implementations on Foreign Types§

source§

impl<Impl> TypedBuilder<Impl> for Arc<Impl>where Impl: Send + Sync + 'static,

source§

fn get(&self, _cat: &Catalog) -> Result<Arc<Impl>, InjectionError>

Implementors§

source§

impl<Fct, Impl> TypedBuilder<Impl> for Fctwhere Fct: Fn() -> Arc<Impl> + Send + Sync, Impl: Send + Sync + 'static,