MutableDependencyResolverExt
trait · ferroui-splat · v0.5.0
trait MutableDependencyResolverExt: IMutableDependencyResolver
The generic forms of IMutableDependencyResolver.
Members
has_registrationhas_registration_with_contractregisterregister_with_contractregister_constantregister_constant_with_contractregister_constant_disposableregister_constant_disposable_with_contractregister_lazy_singletonregister_lazy_singleton_with_contractregister_lazy_singleton_disposableregister_lazy_singleton_disposable_with_contractunregister_currentunregister_current_with_contractunregister_allunregister_all_with_contractservice_registration_callbackservice_registration_callback_with_contract
has_registration
fn has_registration<S: ?Sized + 'static>(self: &Self) -> bool
HasRegistration<T>().
has_registration_with_contract
fn has_registration_with_contract<S: ?Sized + 'static>(self: &Self, contract: Option<&str>) -> bool
HasRegistration<T>(string? contract).
register
fn register<S: ?Sized + 'static>(self: &Self, factory: impl Fn() -> Option<Rc<S>> + 'static)
Register<T>(Func<T?>).
register_with_contract
fn register_with_contract<S: ?Sized + 'static>(self: &Self, factory: impl Fn() -> Option<Rc<S>> + 'static, contract: Option<&str>)
Register<T>(Func<T?>, string? contract).
register_constant
fn register_constant<S: ?Sized + 'static>(self: &Self, value: Rc<S>)
RegisterConstant<T>(T).
register_constant_with_contract
fn register_constant_with_contract<S: ?Sized + 'static>(self: &Self, value: Rc<S>, contract: Option<&str>)
RegisterConstant<T>(T, string? contract).
register_constant_disposable
fn register_constant_disposable<S: ?Sized + IDisposable + 'static>(self: &Self, value: Rc<S>)
RegisterConstant<T>(T) of a constant that the resolver disposes when it is disposed.
register_constant_disposable_with_contract
fn register_constant_disposable_with_contract<S: ?Sized + IDisposable + 'static>(self: &Self, value: Rc<S>, contract: Option<&str>)
RegisterConstant<T>(T, string? contract) of a constant that the resolver disposes when it
is disposed.
register_lazy_singleton
fn register_lazy_singleton<S: ?Sized + 'static>(self: &Self, factory: impl Fn() -> Option<Rc<S>> + 'static)
RegisterLazySingleton<T>(Func<T?>).
register_lazy_singleton_with_contract
fn register_lazy_singleton_with_contract<S: ?Sized + 'static>(self: &Self, factory: impl Fn() -> Option<Rc<S>> + 'static, contract: Option<&str>)
RegisterLazySingleton<T>(Func<T?>, string? contract).
register_lazy_singleton_disposable
fn register_lazy_singleton_disposable<S: ?Sized + IDisposable + 'static>(self: &Self, factory: impl Fn() -> Option<Rc<S>> + 'static)
RegisterLazySingleton<T>(Func<T?>) of a singleton that the resolver disposes, once
created, when it is disposed.
register_lazy_singleton_disposable_with_contract
fn register_lazy_singleton_disposable_with_contract<S: ?Sized + IDisposable + 'static>(self: &Self, factory: impl Fn() -> Option<Rc<S>> + 'static, contract: Option<&str>)
RegisterLazySingleton<T>(Func<T?>, string? contract) of a singleton that the resolver
disposes, once created, when it is disposed.
unregister_current
fn unregister_current<S: ?Sized + 'static>(self: &Self)
UnregisterCurrent<T>().
unregister_current_with_contract
fn unregister_current_with_contract<S: ?Sized + 'static>(self: &Self, contract: Option<&str>)
UnregisterCurrent<T>(string? contract).
unregister_all
fn unregister_all<S: ?Sized + 'static>(self: &Self)
UnregisterAll<T>().
unregister_all_with_contract
fn unregister_all_with_contract<S: ?Sized + 'static>(self: &Self, contract: Option<&str>)
UnregisterAll<T>(string? contract).
service_registration_callback
fn service_registration_callback<S: ?Sized + 'static>(self: &Self, callback: impl Fn(&dyn IDisposable) -> () + 'static) -> Rc<dyn IDisposable>
ServiceRegistrationCallback<T>(Action<IDisposable>).
service_registration_callback_with_contract
fn service_registration_callback_with_contract<S: ?Sized + 'static>(self: &Self, contract: Option<&str>, callback: impl Fn(&dyn IDisposable) -> () + 'static) -> Rc<dyn IDisposable>
ServiceRegistrationCallback<T>(string? contract, Action<IDisposable>).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.