Skip to main content

ServiceBuilder

Trait ServiceBuilder 

Source
pub trait ServiceBuilder {
    type Service: Service + 'static;

    // Required method
    fn build(self, id: usize, on: Arc<dyn Host>) -> Self::Service;
}

Required Associated Types§

Source

type Service: Service + 'static

Required Methods§

Source

fn build(self, id: usize, on: Arc<dyn Host>) -> Self::Service

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§