⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

QuicConnection

Struct QuicConnection 

Source
pub struct QuicConnection {
Show 14 fields pub state: ConnectionState, pub src_cid: ConnectionId, pub dst_cid: ConnectionId, pub active_cids: Vec<ConnectionId>, pub pn_spaces: [PnSpace; 3], pub idle_timeout_ms: u64, pub last_activity_us: u64, pub rtt: RttEstimator, pub max_data_send: u64, pub max_data_recv: u64, pub data_sent: u64, pub data_received: u64, pub streams: StreamManager, pub path_challenge_data: Option<[u8; 8]>,
}
Expand description

QUIC connection.

Fields§

§state: ConnectionState§src_cid: ConnectionId§dst_cid: ConnectionId§active_cids: Vec<ConnectionId>

Active connection IDs (for rotation)

§pn_spaces: [PnSpace; 3]

Packet number spaces

§idle_timeout_ms: u64

Idle timeout in milliseconds

§last_activity_us: u64

Last activity timestamp in microseconds

§rtt: RttEstimator

RTT estimation

§max_data_send: u64

Connection-level flow control: maximum data we can send

§max_data_recv: u64

Connection-level flow control: maximum data peer can send

§data_sent: u64

Total data sent

§data_received: u64

Total data received

§streams: StreamManager

Stream manager

§path_challenge_data: Option<[u8; 8]>

Path validation state

Implementations§

Source§

impl QuicConnection

Source

pub fn new_client(src_cid: ConnectionId, dst_cid: ConnectionId) -> Self

Create a new QUIC connection (client side).

Source

pub fn new_server(src_cid: ConnectionId, dst_cid: ConnectionId) -> Self

Create a new QUIC connection (server side).

Trait Implementations§

Source§

impl Debug for QuicConnection

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for QuicConnection

§

impl RefUnwindSafe for QuicConnection

§

impl Send for QuicConnection

§

impl Sync for QuicConnection

§

impl Unpin for QuicConnection

§

impl UnwindSafe for QuicConnection

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.