Trait Handler

Source
pub trait Handler<'a, State: StateInstance>: Send {
    // Provided methods
    fn get<'b>(self: Box<Self>) -> Option<GetHandler<'a, 'b, State::Txn, State>>
       where 'b: 'a { ... }
    fn put<'b>(self: Box<Self>) -> Option<PutHandler<'a, 'b, State::Txn, State>>
       where 'b: 'a { ... }
    fn post<'b>(
        self: Box<Self>,
    ) -> Option<PostHandler<'a, 'b, State::Txn, State>>
       where 'b: 'a { ... }
    fn delete<'b>(self: Box<Self>) -> Option<DeleteHandler<'a, 'b, State::Txn>>
       where 'b: 'a { ... }
}

Provided Methods§

Source

fn get<'b>(self: Box<Self>) -> Option<GetHandler<'a, 'b, State::Txn, State>>
where 'b: 'a,

Source

fn put<'b>(self: Box<Self>) -> Option<PutHandler<'a, 'b, State::Txn, State>>
where 'b: 'a,

Source

fn post<'b>(self: Box<Self>) -> Option<PostHandler<'a, 'b, State::Txn, State>>
where 'b: 'a,

Source

fn delete<'b>(self: Box<Self>) -> Option<DeleteHandler<'a, 'b, State::Txn>>
where 'b: 'a,

Implementors§

Source§

impl<'a, State> Handler<'a, State> for EchoHandler
where State: StateInstance,

Source§

impl<'a, State> Handler<'a, State> for ErrorHandler<'a>
where State: StateInstance, TCString: TryCastFrom<State>, Tuple<TCString>: TryCastFrom<State>,

Source§

impl<'a, State, T> Handler<'a, State> for AttributeHandler<T>
where State: StateInstance + From<T>, T: Clone + Send + Sync + 'a,

Source§

impl<'a, State, T> Handler<'a, State> for SelfHandler<'a, T>
where State: StateInstance + From<T>, T: Clone + Send + Sync + Debug,

Source§

impl<'a, State, T> Handler<'a, State> for SelfHandlerOwned<T>
where State: StateInstance + From<T>, T: Send + Sync + Debug + 'a,

Source§

impl<'a, State: StateInstance> Handler<'a, State> for MethodNotAllowedHandler