pub enum HttpServerEvent<Error> {
Opened(HttpBind),
Replaced {
closed: HttpBind,
opened: HttpBind,
},
Closed(HttpBind),
Failed {
bind: HttpBind,
error: Error,
},
}Expand description
Records the lifecycle transition an HTTP server interpreter made.
Variants§
Opened(HttpBind)
Records that a surface began serving at an address.
Replaced
Records that an open server released one address before another was bound.
Fields
Closed(HttpBind)
Records that an open server released its address.
Failed
Records that the requested transition could not be completed.
Trait Implementations§
Source§impl<Error: Debug> Debug for HttpServerEvent<Error>
impl<Error: Debug> Debug for HttpServerEvent<Error>
Source§impl<Error: PartialEq> PartialEq for HttpServerEvent<Error>
impl<Error: PartialEq> PartialEq for HttpServerEvent<Error>
impl<Error: PartialEq> StructuralPartialEq for HttpServerEvent<Error>
Auto Trait Implementations§
impl<Error> Freeze for HttpServerEvent<Error>where
Error: Freeze,
impl<Error> RefUnwindSafe for HttpServerEvent<Error>where
Error: RefUnwindSafe,
impl<Error> Send for HttpServerEvent<Error>where
Error: Send,
impl<Error> Sync for HttpServerEvent<Error>where
Error: Sync,
impl<Error> Unpin for HttpServerEvent<Error>where
Error: Unpin,
impl<Error> UnsafeUnpin for HttpServerEvent<Error>where
Error: UnsafeUnpin,
impl<Error> UnwindSafe for HttpServerEvent<Error>where
Error: 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.