pub enum HttpServerCommand<Surface> {
Open(HttpServerSetup<Surface>),
Close,
}Expand description
Requests the desired lifecycle state of one bound HTTP server.
Variants§
Open(HttpServerSetup<Surface>)
Requests that this setup be the server currently open.
Close
Requests that no server remain open.
Trait Implementations§
Auto Trait Implementations§
impl<Surface> Freeze for HttpServerCommand<Surface>where
HttpServerSetup<Surface>: Freeze,
impl<Surface> RefUnwindSafe for HttpServerCommand<Surface>where
HttpServerSetup<Surface>: RefUnwindSafe,
impl<Surface> Send for HttpServerCommand<Surface>where
HttpServerSetup<Surface>: Send,
impl<Surface> Sync for HttpServerCommand<Surface>where
HttpServerSetup<Surface>: Sync,
impl<Surface> Unpin for HttpServerCommand<Surface>where
HttpServerSetup<Surface>: Unpin,
impl<Surface> UnsafeUnpin for HttpServerCommand<Surface>where
HttpServerSetup<Surface>: UnsafeUnpin,
impl<Surface> UnwindSafe for HttpServerCommand<Surface>where
HttpServerSetup<Surface>: UnwindSafe,
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.