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§
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.