Struct gotham::router::response::finalizer::ResponseFinalizer
[−]
[src]
pub struct ResponseFinalizer { /* fields omitted */ }
Holds an immutable collection of ResponseExtender
values, as configured using
ResponseFinalizerBuilder::add
. This type is constructed automatically when using the
gotham::router::builder
API. See RouterBuilder::add_response_extender
for details on
configuring ResponseExtender
values for each StatusCode
.
Methods
impl ResponseFinalizer
[src]
ⓘImportant traits for Box<W>pub fn finalize(&self, state: State, res: Response) -> Box<HandlerFuture>
[src]
ⓘImportant traits for Box<W>
Finalize the Response
if a ResponseFinalizer
has been supplied for the
status code assigned to the Response
.
Trait Implementations
impl Clone for ResponseFinalizer
[src]
fn clone(&self) -> ResponseFinalizer
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more