Struct salt::Stack
[−]
[src]
pub struct Stack { /* fields omitted */ }
A set of [StackHandler
]s that are executed in sequence around a root Handler
.
A Stack
is constructed by wrapping a root Handler
.
let stack = Stack::new(|_| { // [...] });
Methods
impl Stack
[src]
fn new<H: Handler + 'static>(root: H) -> Self
fn add<T: StackHandler + 'static>(&mut self, handler: T)
Trait Implementations
impl Handler for Stack
[src]
type Result = BoxFutureResponse
fn call(&self, ctx: Context) -> Self::Result
fn boxed(self) -> BoxHandler where
Self: Sized + 'static,
Self: Sized + 'static,