Trait arc_reactor::proto::ArcService [−][src]
pub trait ArcService: ArcServiceClone + Send + Sync { fn call(&self, req: Request, res: Response) -> FutureResponse; }
This trait is automatically derived by the #[service] proc_macro.
Required Methods
fn call(&self, req: Request, res: Response) -> FutureResponse
Implementors
impl<T> ArcService for T where
T: Fn(Request, Response) -> FutureResponse + Send + Sync + Clone + 'static,impl ArcService for ArcHandler
impl ArcService for Router