Trait dharma::event_loop::ServiceConstructor [] [src]

pub trait ServiceConstructor: Send + Sync {
    fn construct(&self) -> Box<Service>;
}

To avoid requirement for Service to be Send and Sync it is constructed by special trait object.

NOTE: ServiceConstructor could be replaced by FnBox if it was stable.

Required Methods

Constructs new Service.

Implementors