pub struct StreamSlot { /* private fields */ }Expand description
Receive queues and independent local/remote lifecycle state for one stream.
Implementations§
Source§impl StreamSlot
impl StreamSlot
Sourcepub const fn buffered_bytes(&self) -> usize
pub const fn buffered_bytes(&self) -> usize
Retained bytes charged to this stream’s budget.
Sourcepub fn queued_message_count(&self) -> usize
pub fn queued_message_count(&self) -> usize
Complete messages currently awaiting consumption.
Sourcepub const fn remote_end_stream(&self) -> bool
pub const fn remote_end_stream(&self) -> bool
Whether the peer has closed its sending half.
Sourcepub const fn local_end_stream(&self) -> bool
pub const fn local_end_stream(&self) -> bool
Whether the local endpoint has closed its sending half.
Sourcepub const fn reset_error_code(&self) -> Option<u32>
pub const fn reset_error_code(&self) -> Option<u32>
The HTTP/2 RST_STREAM error code, if received.
Trait Implementations§
Source§impl Debug for StreamSlot
impl Debug for StreamSlot
Auto Trait Implementations§
impl Freeze for StreamSlot
impl RefUnwindSafe for StreamSlot
impl Send for StreamSlot
impl Sync for StreamSlot
impl Unpin for StreamSlot
impl UnsafeUnpin for StreamSlot
impl UnwindSafe for StreamSlot
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