Trait rscontainer::IOwned[][src]

pub trait IOwned {
    type Instance;
    type Parameters;
    type Error;
    fn construct(
        ctn: Resolver<'_>,
        params: Self::Parameters
    ) -> Result<Self::Instance, Self::Error>; fn resolved(_this: &mut Self::Instance, _ctn: Resolver<'_>) { ... } }
Expand description

A type that can be used as an owned service.

Associated Types

The type of the owned service.

Optional parameters for the construct method.

The type of the error that can occur when constructing or resolving this service.

Required methods

Constructs an instance of the shared service.

Provided methods

Called each time after the service is resolved from the container.

Implementations on Foreign Types

Implementors