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
fn descriptor(&self) -> ProductDescriptor
Returns a ProductDescriptor for the product this provider provides.
fn service(
&mut self,
path: &str,
products: Vec<Product>
) -> Result<ServiceProduct, ServiceErrors>
&mut self,
path: &str,
products: Vec<Product>
) -> Result<ServiceProduct, ServiceErrors>
The function that actually runs the service.