pub trait NotFound<V> {
    // Required method
    fn not_found() -> Response<V>;
}
Available on crate feature server and (crate features http1 or http2) only.
Expand description

Trait for generating a default “not found” response. Must be implemented on the Response associated type for MakeServices being combined in a CompositeMakeService.

Required Methods§

source

fn not_found() -> Response<V>

Return a “not found” response

Implementors§

source§

impl<B: Default> NotFound<B> for B