Skip to main content

HttpServerEvent

Enum HttpServerEvent 

Source
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

Names the address the previous server closed.

§opened: HttpBind

Names the address the replacement server opened.

§

Closed(HttpBind)

Records that an open server released its address.

§

Failed

Records that the requested transition could not be completed.

Fields

§bind: HttpBind

Names the address of the transition that failed.

§error: Error

Carries the interpreter’s failure.

Trait Implementations§

Source§

impl<Error: Debug> Debug for HttpServerEvent<Error>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Error: PartialEq> PartialEq for HttpServerEvent<Error>

Source§

fn eq(&self, other: &HttpServerEvent<Error>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<This> HttpProgramExt<This> for This

Source§

fn compile_http<Program>( &self, program: Program, ) -> <Program as HttpProgramAlg<This>>::Route
where Program: HttpProgramAlg<This>,

Compiles a named HTTP program with this interpreter.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.