[−][src]Struct httpbis::ClientRequest
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]
F: FnMut(&mut ClientRequest) -> Result<()> + Send + 'static,
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]
&mut self,
stream: HttpStreamAfterHeaders
) -> Result<(), SendError>
pub fn pull_bytes_from_stream<S>(&mut self, stream: S) -> Result<(), SendError> where
S: Stream<Item = Result<Bytes>> + Send + 'static,
[src]
S: Stream<Item = Result<Bytes>> + Send + 'static,
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
impl !RefUnwindSafe for ClientRequest
impl Send for ClientRequest
impl !Sync for ClientRequest
impl Unpin for ClientRequest
impl !UnwindSafe for ClientRequest
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,