pub struct StreamBind {
pub logical_stream_id: u64,
}Expand description
Stream binding frame sent on data streams.
When a data stream is opened, the first frame sent must be a StreamBind
to identify which logical stream this QUIC stream belongs to. This allows
the receiving peer to match the data stream with the corresponding
OpenRequest/OpenResponse exchange.
§Wire Format
The stream bind frame is encoded as:
- 4 bytes: magic number (
0x51524256, “QRBV” for “Quic Reverse Bind Version”) - 1 byte: version (currently 1)
- 8 bytes:
logical_stream_id(big-endian u64)
Total: 13 bytes
Fields§
§logical_stream_id: u64Logical stream ID assigned during OpenResponse.
Implementations§
Source§impl StreamBind
impl StreamBind
Sourcepub const ENCODED_SIZE: usize = 13usize
pub const ENCODED_SIZE: usize = 13usize
Size of the encoded stream bind frame.
Sourcepub const fn new(logical_stream_id: u64) -> StreamBind
pub const fn new(logical_stream_id: u64) -> StreamBind
Creates a new stream bind frame.
Trait Implementations§
Source§impl Clone for StreamBind
impl Clone for StreamBind
Source§fn clone(&self) -> StreamBind
fn clone(&self) -> StreamBind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamBind
impl Debug for StreamBind
Source§impl PartialEq for StreamBind
impl PartialEq for StreamBind
impl Copy for StreamBind
impl Eq for StreamBind
impl StructuralPartialEq for StreamBind
Auto Trait Implementations§
impl Freeze for StreamBind
impl RefUnwindSafe for StreamBind
impl Send for StreamBind
impl Sync for StreamBind
impl Unpin for StreamBind
impl UnwindSafe for StreamBind
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