pub struct QuicStream {Show 14 fields
pub id: u64,
pub state: StreamState,
pub stream_type: StreamType,
pub send_buf: Vec<u8>,
pub send_offset: u64,
pub recv_buf: Vec<u8>,
pub recv_offset: u64,
pub max_send_data: u64,
pub max_recv_data: u64,
pub bytes_sent: u64,
pub bytes_received: u64,
pub priority: u8,
pub fin_sent: bool,
pub fin_received: bool,
}Expand description
A single QUIC stream.
Fields§
§id: u64§state: StreamState§stream_type: StreamType§send_buf: Vec<u8>Send buffer
send_offset: u64Send offset (next byte to send)
recv_buf: Vec<u8>Receive buffer
recv_offset: u64Receive offset (next expected byte)
max_send_data: u64Max data we can send on this stream
max_recv_data: u64Max data peer can send on this stream
bytes_sent: u64Total bytes sent
bytes_received: u64Total bytes received
priority: u8Priority weight (higher = more important)
fin_sent: boolWhether FIN has been sent
fin_received: boolWhether FIN has been received
Implementations§
Source§impl QuicStream
impl QuicStream
Trait Implementations§
Source§impl Clone for QuicStream
impl Clone for QuicStream
Source§fn clone(&self) -> QuicStream
fn clone(&self) -> QuicStream
Returns a duplicate of the value. Read more
1.0.0§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 QuicStream
impl RefUnwindSafe for QuicStream
impl Send for QuicStream
impl Sync for QuicStream
impl Unpin for QuicStream
impl UnwindSafe for QuicStream
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)