Struct ntex_h2::client::SendStream
source · pub struct SendStream(/* private fields */);Expand description
Send part of the client stream
Implementations§
source§impl SendStream
impl SendStream
pub fn id(&self) -> StreamId
pub fn stream(&self) -> &StreamRef
pub fn available_send_capacity(&self) -> WindowSize
pub async fn send_capacity(&self) -> Result<WindowSize, OperationError>
sourcepub async fn send_payload(
&self,
res: Bytes,
eof: bool
) -> Result<(), OperationError>
pub async fn send_payload( &self, res: Bytes, eof: bool ) -> Result<(), OperationError>
Send payload
pub fn send_trailers(&self, map: HeaderMap)
sourcepub fn poll_send_capacity(
&self,
cx: &Context<'_>
) -> Poll<Result<WindowSize, OperationError>>
pub fn poll_send_capacity( &self, cx: &Context<'_> ) -> Poll<Result<WindowSize, OperationError>>
Check for available send capacity
sourcepub fn poll_send_reset(
&self,
cx: &Context<'_>
) -> Poll<Result<(), OperationError>>
pub fn poll_send_reset( &self, cx: &Context<'_> ) -> Poll<Result<(), OperationError>>
Check if send part of stream get reset
Trait Implementations§
source§impl Debug for SendStream
impl Debug for SendStream
Auto Trait Implementations§
impl !RefUnwindSafe for SendStream
impl !Send for SendStream
impl !Sync for SendStream
impl Unpin for SendStream
impl !UnwindSafe for SendStream
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more