EntityState

Trait EntityState 

Source
pub trait EntityState: IntoBodyState + IntoBodyStreamState {
    type HeadersState: HeadersState;
    type HeadersStateFuture: Future<Output = Self::HeadersState>;

    // Required method
    fn into_headers_state(self) -> Self::HeadersStateFuture;
}
Expand description

Abstract initial state of the HTTP Flow state-machine.

Required Associated Types§

Source

type HeadersState: HeadersState

Concrete type for Headers state of the Flow state-machine.

Source

type HeadersStateFuture: Future<Output = Self::HeadersState>

A Future that will be completed when the Headers state is reached.

Required Methods§

Source

fn into_headers_state(self) -> Self::HeadersStateFuture

Moves the current initial state into the Headers state of the HTTP Flow state-machine. The Future returned by this method can be cancelled.

Implementors§