Skip to main content

HttpServerExt

Trait HttpServerExt 

Source
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§

Source

fn lifecycle<Commands>( self, commands: Commands, ) -> impl Stream<Item = HttpServerEvent<This::Error>>
where Commands: Stream<Item = HttpServerCommand<This::Program>> + Unpin,

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§

Source§

impl<This> HttpServerExt<This> for This
where This: HttpServerAlg,

Derives streaming access to a concrete HTTP server’s lifecycle.