Struct sunfish::ReleaseSunfish
source · [−]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<RouteInitializer>,
}
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<RouteInitializer>
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
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more