dill

Trait 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 Fct
where Fct: Fn() -> Arc<Impl> + Send + Sync, Impl: Send + Sync + 'static,