IntoBodyState

Trait IntoBodyState 

Source
pub trait IntoBodyState {
    type BodyState: BodyState;
    type BodyStateFuture: Future<Output = Self::BodyState>;

    // Required method
    fn into_body_state(self) -> Self::BodyStateFuture;
}
Expand description

Abstract state of the HTTP Flow state-machine allowed to be moved into the Body state.

Required Associated Types§

Source

type BodyState: BodyState

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

Source

type BodyStateFuture: Future<Output = Self::BodyState>

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

Required Methods§

Source

fn into_body_state(self) -> Self::BodyStateFuture

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

Implementors§