Struct ClientParameters

Source
pub struct ClientParameters(/* private fields */);

Implementations§

Source§

impl ClientParameters

Source

pub fn set_max_idle_timeout(&mut self, value: impl Into<Duration>)

Source§

impl ClientParameters

Source§

impl ClientParameters

Source

pub fn set_max_udp_payload_size(&mut self, value: impl Into<VarInt>)

Source§

impl ClientParameters

Source§

impl ClientParameters

Source

pub fn set_max_datagram_frame_size(&mut self, value: impl Into<VarInt>)

Source§

impl ClientParameters

Source§

impl ClientParameters

Source

pub fn set_ack_delay_exponent(&mut self, value: impl Into<VarInt>)

Source§

impl ClientParameters

Source§

impl ClientParameters

Source

pub fn set_max_ack_delay(&mut self, value: impl Into<Duration>)

Source§

impl ClientParameters

Source

pub fn max_ack_delay(&self) -> Duration

Source§

impl ClientParameters

Source

pub fn set_disable_active_migration(&mut self, value: impl Into<bool>)

Source§

impl ClientParameters

Source§

impl ClientParameters

Source

pub fn set_active_connection_id_limit(&mut self, value: impl Into<VarInt>)

Source§

impl ClientParameters

Source§

impl ClientParameters

Source

pub fn set_initial_max_data(&mut self, value: impl Into<VarInt>)

Source§

impl ClientParameters

Source§

impl ClientParameters

Source

pub fn set_initial_max_stream_data_bidi_local( &mut self, value: impl Into<VarInt>, )

Source§

impl ClientParameters

Source§

impl ClientParameters

Source

pub fn set_initial_max_stream_data_bidi_remote( &mut self, value: impl Into<VarInt>, )

Source§

impl ClientParameters

Source§

impl ClientParameters

Source

pub fn set_initial_max_stream_data_uni(&mut self, value: impl Into<VarInt>)

Source§

impl ClientParameters

Source§

impl ClientParameters

Source

pub fn set_initial_max_streams_bidi(&mut self, value: impl Into<VarInt>)

Source§

impl ClientParameters

Source§

impl ClientParameters

Source

pub fn set_initial_max_streams_uni(&mut self, value: impl Into<VarInt>)

Source§

impl ClientParameters

Source§

impl ClientParameters

Source

pub fn set_initial_source_connection_id( &mut self, value: impl Into<ConnectionId>, )

Source§

impl ClientParameters

Source§

impl ClientParameters

Source

pub fn set_grease_quic_bit(&mut self, value: impl Into<bool>)

Source§

impl ClientParameters

Source

pub fn grease_quic_bit(&self) -> bool

Trait Implementations§

Source§

impl AsRef<HashMap<ParameterId, ParameterValue>> for ClientParameters

Source§

fn as_ref(&self) -> &HashMap<ParameterId, ParameterValue>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for ClientParameters

Source§

fn clone(&self) -> ClientParameters

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ClientParameters

Source§

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

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

impl Default for ClientParameters

Source§

fn default() -> ClientParameters

Returns the “default value” for a type. Read more
Source§

impl StoreParameter for ClientParameters

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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<S> StoreParameterExt for S
where S: StoreParameter + ?Sized,

Source§

fn get_as<V>(&self, id: ParameterId) -> Option<V>

Source§

fn get_as_ensured<V>(&self, id: ParameterId) -> V

Source§

fn set_as<V>(&mut self, id: ParameterId, value: V) -> Result<(), QuicError>
where ParameterValue: From<V>,

Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = Infallible

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

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

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more