pub struct Stream { /* private fields */ }Expand description
An HTTP/2 stream.
Implementations§
Source§impl Stream
impl Stream
Sourcepub fn state(&self) -> StreamState
pub fn state(&self) -> StreamState
Get the stream state.
Sourcepub fn send_window(&self) -> i32
pub fn send_window(&self) -> i32
Get the send window size.
Sourcepub fn recv_window(&self) -> i32
pub fn recv_window(&self) -> i32
Get the receive window size.
Sourcepub fn send_end_stream(&mut self)
pub fn send_end_stream(&mut self)
Record that we sent END_STREAM.
Sourcepub fn recv_end_stream(&mut self)
pub fn recv_end_stream(&mut self)
Record that we received END_STREAM.
Sourcepub fn increase_send_window(&mut self, increment: u32)
pub fn increase_send_window(&mut self, increment: u32)
Increase the send window (from WINDOW_UPDATE).
Sourcepub fn adjust_send_window(&mut self, delta: i32)
pub fn adjust_send_window(&mut self, delta: i32)
Adjust the send window (from SETTINGS change).
Sourcepub fn bytes_received(&self) -> u32
pub fn bytes_received(&self) -> u32
Get bytes received since last window update.
Sourcepub fn reset_bytes_received(&mut self)
pub fn reset_bytes_received(&mut self)
Reset bytes received counter.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stream
impl RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnsafeUnpin for Stream
impl UnwindSafe for Stream
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