struct StreamState<'a> {
stream_id: u64,
key: StreamKey,
is_control_stream: bool,
pending: &'a mut PendingQueue,
deferred: &'a mut DeferredEffects,
}Expand description
The deferred-write state of one stream direction, plus the two facts every teardown helper needs about it.
Bundled because PendingQueue and DeferredEffects are only correct
when they move together, and because propagate_reset needs both the
stream’s identity and its queue.
Fields§
§stream_id: u64§key: StreamKeyThis stream’s session-local identity, minted once at accept and
carried to every site it reaches. Distinct from stream_id, which
is the transport id and is 0 on every WebTransport stream.
is_control_stream: booltrue selects the control-stream rules at Site::StreamEnd, where
a synthesized reset is a session-level protocol violation and is
refused rather than executed.
pending: &'a mut PendingQueue§deferred: &'a mut DeferredEffectsAuto Trait Implementations§
impl<'a> !UnwindSafe for StreamState<'a>
impl<'a> Freeze for StreamState<'a>
impl<'a> RefUnwindSafe for StreamState<'a>
impl<'a> Send for StreamState<'a>
impl<'a> Sync for StreamState<'a>
impl<'a> Unpin for StreamState<'a>
impl<'a> UnsafeUnpin for StreamState<'a>
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