Struct sunfish::ReleaseSunfish [−][src]
pub struct ReleaseSunfish { pub embedded_dir: EmbeddedDirectory, pub routes_handler: Box<dyn Send + Sync + for<'a> Fn(&'a mut Request<Body>) -> Pin<Box<dyn Send + Future<Output = Result<Option<Response<Body>>>> + 'a>>>, pub routes: Vec<Route>, }
Fields
embedded_dir: EmbeddedDirectory
routes_handler: Box<dyn Send + Sync + for<'a> Fn(&'a mut Request<Body>) -> Pin<Box<dyn Send + Future<Output = Result<Option<Response<Body>>>> + 'a>>>
routes: Vec<Route>
Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ReleaseSunfish
impl Send for ReleaseSunfish
impl Sync for ReleaseSunfish
impl Unpin for ReleaseSunfish
impl !UnwindSafe for ReleaseSunfish
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self