Struct dharma::event_loop::ServiceInfo
[−]
[src]
pub struct ServiceInfo { /* fields omitted */ }
Context for creation of Service
.
Methods
impl ServiceInfo
[src]
fn new(name: String, constructor: Box<ServiceConstructor>) -> Self
Constructs new ServiceInfo
.
fn start(self) -> Result<JoinHandle<()>>
Consume ServiceInfo
to start custom event loop in new thread.