Trait rustful::handler::Build
[−]
[src]
pub trait Build<'a> { type Builder: 'a; fn get_builder(&'a mut self, context: BuilderContext) -> Self::Builder; }
A trait for handlers that can be build, using a chainable API.
Associated Types
type Builder: 'a
The type that provides the builder API.
Required Methods
fn get_builder(&'a mut self, context: BuilderContext) -> Self::Builder
Get the builder type for this type, and prepare it with a context.
Implementors
impl<'a, T: 'a> Build<'a> for TreeRouter<T> type Builder = Builder<'a, T>;
impl<'a, T: 'a> Build<'a> for MethodRouter<T> type Builder = Builder<'a, T>;
impl<'a, A: 'a, B: 'a> Build<'a> for OrElse<A, B> type Builder = Builder<'a, A, B>;
impl<'a, T: 'a> Build<'a> for StatusRouter<T> type Builder = Builder<'a, T>;
impl<'a, H: Build<'a>> Build<'a> for Variables<H> type Builder = H::Builder;