pub trait HttpServerExt<This>where
This: HttpServerAlg,{
// Required method
fn lifecycle<Commands>(
self,
commands: Commands,
) -> impl Stream<Item = HttpServerEvent<This::Error>>
where Commands: Stream<Item = HttpServerCommand<This::Program>> + Unpin;
}Expand description
Derives streaming access to a concrete HTTP server’s lifecycle.
Required Methods§
Sourcefn lifecycle<Commands>(
self,
commands: Commands,
) -> impl Stream<Item = HttpServerEvent<This::Error>>
fn lifecycle<Commands>( self, commands: Commands, ) -> impl Stream<Item = HttpServerEvent<This::Error>>
Interprets lifecycle commands as the ordered transitions this server makes.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<This> HttpServerExt<This> for Thiswhere
This: HttpServerAlg,
Derives streaming access to a concrete HTTP server’s lifecycle.