Skip to main content

QuicTransportParameterId

Struct QuicTransportParameterId 

Source
pub struct QuicTransportParameterId(/* private fields */);
Expand description

A raw QUIC transport-parameter identifier, preserving unknown and reserved values.

Implementations§

Source§

impl QuicTransportParameterId

Source

pub const ORIGINAL_DESTINATION_CONNECTION_ID: Self

The original-destination-connection-ID parameter (0x00).

Source

pub const MAX_IDLE_TIMEOUT: Self

The maximum-idle-timeout parameter (0x01).

Source

pub const STATELESS_RESET_TOKEN: Self

The stateless-reset-token parameter (0x02).

Source

pub const MAX_UDP_PAYLOAD_SIZE: Self

The maximum-UDP-payload-size parameter (0x03).

Source

pub const INITIAL_MAX_DATA: Self

The initial-maximum-data parameter (0x04).

Source

pub const INITIAL_MAX_STREAM_DATA_BIDI_LOCAL: Self

The initial-maximum-stream-data-bidi-local parameter (0x05).

Source

pub const INITIAL_MAX_STREAM_DATA_BIDI_REMOTE: Self

The initial-maximum-stream-data-bidi-remote parameter (0x06).

Source

pub const INITIAL_MAX_STREAM_DATA_UNI: Self

The initial-maximum-stream-data-uni parameter (0x07).

Source

pub const INITIAL_MAX_STREAMS_BIDI: Self

The initial-maximum-streams-bidi parameter (0x08).

Source

pub const INITIAL_MAX_STREAMS_UNI: Self

The initial-maximum-streams-uni parameter (0x09).

Source

pub const ACK_DELAY_EXPONENT: Self

The acknowledgment-delay-exponent parameter (0x0a).

Source

pub const MAX_ACK_DELAY: Self

The maximum-acknowledgment-delay parameter (0x0b).

Source

pub const DISABLE_ACTIVE_MIGRATION: Self

The disable-active-migration parameter (0x0c).

Source

pub const PREFERRED_ADDRESS: Self

The preferred-address parameter (0x0d).

Source

pub const ACTIVE_CONNECTION_ID_LIMIT: Self

The active-connection-ID-limit parameter (0x0e).

Source

pub const INITIAL_SOURCE_CONNECTION_ID: Self

The initial-source-connection-ID parameter (0x0f).

Source

pub const RETRY_SOURCE_CONNECTION_ID: Self

The retry-source-connection-ID parameter (0x10).

Source

pub const fn new(raw: u64) -> Self

Creates an identifier from its decoded wire value.

Source

pub const fn raw(self) -> u64

Returns the decoded wire value.

Source

pub const fn is_reserved(self) -> bool

Returns whether this identifier has RFC 9000’s reserved 31 * N + 27 form.

Trait Implementations§

Source§

impl Clone for QuicTransportParameterId

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for QuicTransportParameterId

Source§

impl Debug for QuicTransportParameterId

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Eq for QuicTransportParameterId

Source§

impl Hash for QuicTransportParameterId

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for QuicTransportParameterId

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for QuicTransportParameterId

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.