[][src]Struct httpbis::ClientRequest

pub struct ClientRequest { /* fields omitted */ }

Reference to outgoing stream on the client side.

Implementations

impl ClientRequest[src]

pub fn state(&self) -> SenderState[src]

pub fn set_drop_callback<F>(&mut self, f: F) where
    F: FnMut(&mut ClientRequest) -> Result<()> + Send + 'static, 
[src]

pub fn clear_drop_callback(&mut self)[src]

pub fn poll(&mut self, cx: &mut Context) -> Poll<Result<(), StreamDead>>[src]

Wait for stream to be ready to accept data.

pub fn send_data(&mut self, data: Bytes) -> Result<(), SendError>[src]

Enqueue data to outgoing stream

This operation fails if stream is in incorrect state.

The operation does not fail if stream or connection windows is not available, in that case message will be queued until peer increases window.

pub fn send_data_end_of_stream(&mut self, data: Bytes) -> Result<(), SendError>[src]

Send last DATA frame

pub fn send_trailers(&mut self, trailers: Headers) -> Result<(), SendError>[src]

Send trailing headers

pub fn pull_from_stream(
    &mut self,
    stream: HttpStreamAfterHeaders
) -> Result<(), SendError>
[src]

pub fn pull_bytes_from_stream<S>(&mut self, stream: S) -> Result<(), SendError> where
    S: Stream<Item = Result<Bytes>> + Send + 'static, 
[src]

pub fn reset(&mut self, error_code: ErrorCode) -> Result<(), SendError>[src]

pub fn close(&mut self) -> Result<(), SendError>[src]

Trait Implementations

impl Drop for ClientRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.