Trait rustful::handler::Handler [] [src]

pub trait Handler: Send + Sync + 'static {
    fn handle(&self, context: Context, response: Response);

    fn description(&self) -> Option<Cow<'static, str>> { ... }

A trait for request handlers.

Required Methods

Handle a request from the client. Panicking within this method is discouraged, to allow the server to run smoothly.

Provided Methods

Get a description for the handler.

Implementations on Foreign Types

impl<T: Handler> Handler for Arc<T>

impl Handler for Box<Handler>