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§
Sourcetype BodyStateFuture: Future<Output = Self::BodyState>
type BodyStateFuture: Future<Output = Self::BodyState>
A Future that will be completed when the Body state is reached.
Required Methods§
Sourcefn into_body_state(self) -> Self::BodyStateFuture
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.