Trait monto::service::ServiceProvider [] [src]

pub trait ServiceProvider {
    fn descriptor(&self) -> ProductDescriptor;
fn service(
        &mut self,
        path: &str,
        products: Vec<Product>
    ) -> Result<ServiceProduct, ServiceErrors>; }

A function for a service.

Required Methods

Returns a ProductDescriptor for the product this provider provides.

The function that actually runs the service.

Implementors