DefaultService

Trait DefaultService 

Source
pub trait DefaultService: Service {
    // Required method
    fn spawn_default() -> (Self::Bus, Self::Lifeline);
}
Expand description

Constructs the bus, spawns the service, and returns both.

Required Methods§

Source

fn spawn_default() -> (Self::Bus, Self::Lifeline)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> DefaultService for T
where T: Service,