Skip to main content

ServiceSpec

Trait ServiceSpec 

Source
pub trait ServiceSpec {
    type Config: ?Sized;
    type Service: ?Sized;
}
Expand description

Type-level description of one pluggable service family.

A service specification gives a registry one type parameter that carries the configuration type accepted by providers and the service contract implemented by produced services.

Required Associated Types§

Source

type Config: ?Sized

Configuration type passed to provider checks and factories.

Source

type Service: ?Sized

Service contract implemented by provider-created services.

Implementors§