Trait teloc::dev::container::Container[][src]

pub trait Container {
    type Data;
    fn init(data: Self::Data) -> Self;
}
Expand description

Init is a trait used in ServiceProvider for create an empty version of Container. If you create your own version of container and you want that it can work with other container like ConvertContainer, you must implement this trait.

Associated Types

Required methods

Implementors