Struct arc_reactor::proto::ArcHandler [−][src]
pub struct ArcHandler { pub before: Option<Box<MiddleWare<Request>>>, pub handler: Option<Box<ArcService>>, pub after: Option<Box<MiddleWare<Response>>>, }
Fields
before: Option<Box<MiddleWare<Request>>>
handler: Option<Box<ArcService>>
after: Option<Box<MiddleWare<Response>>>
Methods
impl ArcHandler
[src]
impl ArcHandler
pub fn new<T: 'static + ArcService>(h: T) -> Self
[src]
pub fn new<T: 'static + ArcService>(h: T) -> Self
pub fn before<T: 'static + MiddleWare<Request>>(&mut self, before: T)
[src]
pub fn before<T: 'static + MiddleWare<Request>>(&mut self, before: T)
pub fn after<T: 'static + MiddleWare<Response>>(&mut self, after: T)
[src]
pub fn after<T: 'static + MiddleWare<Response>>(&mut self, after: T)
Trait Implementations
impl Clone for ArcHandler
[src]
impl Clone for ArcHandler
fn clone(&self) -> ArcHandler
[src]
fn clone(&self) -> ArcHandler
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl ArcService for ArcHandler
[src]
impl ArcService for ArcHandler
fn call(&self, req: Request, res: Response) -> FutureResponse
[src]
fn call(&self, req: Request, res: Response) -> FutureResponse
Auto Trait Implementations
impl Send for ArcHandler
impl Send for ArcHandler
impl Sync for ArcHandler
impl Sync for ArcHandler