ResolverMixins
trait · ferroui-splat · v0.5.0
trait ResolverMixins: IMutableDependencyResolver
Registrations that return the resolver (ResolverMixins).
TService : new() is S: Default.
Members
register_andregister_and_with_contractregister_and_factoryregister_and_factory_with_contractregister_constant_andregister_constant_and_with_contractregister_constant_and_valueregister_constant_and_value_with_contractregister_lazy_singleton_andregister_lazy_singleton_and_with_contractregister_lazy_singleton_and_factoryregister_lazy_singleton_and_factory_with_contract
register_and
fn register_and<S: Default + 'static>(self: &Self) -> &Self
RegisterAnd<TService>(): a new S per resolution.
register_and_with_contract
fn register_and_with_contract<S: Default + 'static>(self: &Self, contract: &str) -> &Self
RegisterAnd<TService>(string contract).
register_and_factory
fn register_and_factory<S: ?Sized + 'static>(self: &Self, factory: impl Fn() -> Rc<S> + 'static) -> &Self
RegisterAnd<TService>(Func<TService>).
register_and_factory_with_contract
fn register_and_factory_with_contract<S: ?Sized + 'static>(self: &Self, factory: impl Fn() -> Rc<S> + 'static, contract: &str) -> &Self
RegisterAnd<TService>(Func<TService>, string contract).
register_constant_and
fn register_constant_and<S: Default + 'static>(self: &Self) -> &Self
RegisterConstantAnd<TService>(): one new S, registered as a factory that returns it.
register_constant_and_with_contract
fn register_constant_and_with_contract<S: Default + 'static>(self: &Self, contract: &str) -> &Self
RegisterConstantAnd<TService>(string contract).
register_constant_and_value
fn register_constant_and_value<S: ?Sized + 'static>(self: &Self, value: Rc<S>) -> &Self
RegisterConstantAnd<TService>(TService value).
register_constant_and_value_with_contract
fn register_constant_and_value_with_contract<S: ?Sized + 'static>(self: &Self, value: Rc<S>, contract: &str) -> &Self
RegisterConstantAnd<TService>(TService value, string contract).
register_lazy_singleton_and
fn register_lazy_singleton_and<S: Default + 'static>(self: &Self) -> &Self
RegisterLazySingletonAnd<TService>(): one S, created on the first resolution.
register_lazy_singleton_and_with_contract
fn register_lazy_singleton_and_with_contract<S: Default + 'static>(self: &Self, contract: &str) -> &Self
RegisterLazySingletonAnd<TService>(string contract).
register_lazy_singleton_and_factory
fn register_lazy_singleton_and_factory<S: ?Sized + 'static>(self: &Self, factory: impl Fn() -> Rc<S> + 'static) -> &Self
RegisterLazySingletonAnd<TService>(Func<TService>).
register_lazy_singleton_and_factory_with_contract
fn register_lazy_singleton_and_factory_with_contract<S: ?Sized + 'static>(self: &Self, factory: impl Fn() -> Rc<S> + 'static, contract: &str) -> &Self
RegisterLazySingletonAnd<TService>(Func<TService>, string contract).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.