pub struct HyperServer;Expand description
Serves a direct HTTP surface over hyper at the address its setup names.
Trait Implementations§
Source§impl Debug for HyperServer
impl Debug for HyperServer
Source§impl Default for HyperServer
impl Default for HyperServer
Source§fn default() -> HyperServer
fn default() -> HyperServer
Returns the “default value” for a type. Read more
Source§impl HttpServerAlg for HyperServer
impl HttpServerAlg for HyperServer
Source§type Program = HyperRoute
type Program = HyperRoute
Carries the executable HTTP surface this server serves.
Source§type Open = HyperConnections
type Open = HyperConnections
Carries a concrete open server.
Source§async fn open(
&mut self,
setup: HttpServerSetup<Self::Program>,
) -> Result<Self::Open, Self::Error>
async fn open( &mut self, setup: HttpServerSetup<Self::Program>, ) -> Result<Self::Open, Self::Error>
Opens the address a setup names and resolves only once it is ready to serve. Read more
Auto Trait Implementations§
impl Freeze for HyperServer
impl RefUnwindSafe for HyperServer
impl Send for HyperServer
impl Sync for HyperServer
impl Unpin for HyperServer
impl UnsafeUnpin for HyperServer
impl UnwindSafe for HyperServer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<This> HttpProgramExt<This> for This
impl<This> HttpProgramExt<This> for This
Source§fn compile_http<Program>(
&self,
program: Program,
) -> <Program as HttpProgramAlg<This>>::Routewhere
Program: HttpProgramAlg<This>,
fn compile_http<Program>(
&self,
program: Program,
) -> <Program as HttpProgramAlg<This>>::Routewhere
Program: HttpProgramAlg<This>,
Compiles a named HTTP program with this interpreter.
Source§impl<This> HttpServerExt<This> for Thiswhere
This: HttpServerAlg,
impl<This> HttpServerExt<This> for Thiswhere
This: HttpServerAlg,
Source§fn lifecycle<Commands>(
self,
commands: Commands,
) -> impl Stream<Item = HttpServerEvent<<This as HttpServerAlg>::Error>>
fn lifecycle<Commands>( self, commands: Commands, ) -> impl Stream<Item = HttpServerEvent<<This as HttpServerAlg>::Error>>
Interprets lifecycle commands as the ordered transitions this server makes.