pub struct LogicalStream {Show 14 fields
pub id: StreamId,
pub priority: StreamPriority,
pub state: StreamState,
pub send_window: u32,
pub recv_window: u32,
pub send_seq: u64,
pub recv_seq: u64,
pub bytes_sent: u64,
pub bytes_received: u64,
pub frames_sent: u64,
pub frames_received: u64,
pub opened_at: u64,
pub last_activity: u64,
pub priority_raw: u8,
/* private fields */
}Expand description
State and bookkeeping for a single logical stream.
Fields§
§id: StreamIdIdentifier of this stream.
priority: StreamPriorityPriority used for scheduling send frames.
state: StreamStateCurrent lifecycle state.
send_window: u32Remaining send window (bytes that may still be enqueued for sending).
recv_window: u32Remaining receive window (bytes we are willing to accept from remote).
send_seq: u64Next sequence number to use when enqueuing a send frame.
recv_seq: u64Expected sequence number for the next incoming frame.
bytes_sent: u64Cumulative bytes enqueued for sending (payload only).
bytes_received: u64Cumulative bytes received (payload only).
frames_sent: u64Cumulative frames enqueued for sending (including control frames).
frames_received: u64Cumulative frames received.
opened_at: u64Timestamp (µs) when the stream was opened.
last_activity: u64Timestamp (µs) of the last activity (send or receive).
priority_raw: u8Raw priority byte (0-255) supplied at stream creation.
Trait Implementations§
Source§impl Clone for LogicalStream
impl Clone for LogicalStream
Source§fn clone(&self) -> LogicalStream
fn clone(&self) -> LogicalStream
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LogicalStream
impl RefUnwindSafe for LogicalStream
impl Send for LogicalStream
impl Sync for LogicalStream
impl Unpin for LogicalStream
impl UnsafeUnpin for LogicalStream
impl UnwindSafe for LogicalStream
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more