Struct TransportParameterProfile
pub struct TransportParameterProfile { /* private fields */ }quic only.Expand description
How the transport parameters are laid out.
Implementations§
§impl TransportParameterProfile
impl TransportParameterProfile
pub fn standard() -> TransportParameterProfile
pub fn standard() -> TransportParameterProfile
This crate’s own layout: shuffled, one random greased parameter, the ACK frequency extension advertised.
pub fn order(&self) -> &ParameterOrder
pub fn grease(&self) -> &GreaseParameter
pub fn extra(&self) -> &[OpaqueParameter]
pub fn sends_min_ack_delay(&self) -> bool
pub fn sends_min_ack_delay(&self) -> bool
Whether the min_ack_delay parameter of the ACK frequency extension is sent.
pub fn max_datagram_frame_size(&self) -> Option<u64>
pub fn max_datagram_frame_size(&self) -> Option<u64>
The max_datagram_frame_size value advertised in place of the receive buffer size.
pub fn try_with_order(
self,
order: ParameterOrder,
) -> Result<TransportParameterProfile, ProfileError>
pub fn try_with_order( self, order: ParameterOrder, ) -> Result<TransportParameterProfile, ProfileError>
The order parameters are written in; a fixed order may list each identifier once.
pub fn try_with_grease(
self,
grease: GreaseParameter,
) -> Result<TransportParameterProfile, ProfileError>
pub fn try_with_grease( self, grease: GreaseParameter, ) -> Result<TransportParameterProfile, ProfileError>
The greased parameter; a fixed one must use a reserved identifier.
pub fn try_with_extra(
self,
extra: Vec<OpaqueParameter>,
) -> Result<TransportParameterProfile, ProfileError>
pub fn try_with_extra( self, extra: Vec<OpaqueParameter>, ) -> Result<TransportParameterProfile, ProfileError>
Parameters written as given; none may be one this crate writes itself, and each identifier appears once.
pub fn with_min_ack_delay(self, send: bool) -> TransportParameterProfile
pub fn with_min_ack_delay(self, send: bool) -> TransportParameterProfile
Whether to advertise min_ack_delay (draft-ietf-quic-ack-frequency). On by default.
pub fn set_min_ack_delay(
&mut self,
send: bool,
) -> &mut TransportParameterProfile
pub fn set_min_ack_delay( &mut self, send: bool, ) -> &mut TransportParameterProfile
Whether to advertise min_ack_delay (draft-ietf-quic-ack-frequency). On by default.
pub fn try_with_max_datagram_frame_size(
self,
size: Option<u64>,
) -> Result<TransportParameterProfile, ProfileError>
pub fn try_with_max_datagram_frame_size( self, size: Option<u64>, ) -> Result<TransportParameterProfile, ProfileError>
Advertise this max_datagram_frame_size instead of the receive buffer size; the buffer
still bounds what is accepted. Must fit a variable-length integer.
Trait Implementations§
§impl Clone for TransportParameterProfile
impl Clone for TransportParameterProfile
§fn clone(&self) -> TransportParameterProfile
fn clone(&self) -> TransportParameterProfile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for TransportParameterProfile
impl Debug for TransportParameterProfile
§impl Default for TransportParameterProfile
impl Default for TransportParameterProfile
§fn default() -> TransportParameterProfile
fn default() -> TransportParameterProfile
§impl<'de> Deserialize<'de> for TransportParameterProfile
impl<'de> Deserialize<'de> for TransportParameterProfile
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransportParameterProfile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransportParameterProfile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for TransportParameterProfile
§impl PartialEq for TransportParameterProfile
impl PartialEq for TransportParameterProfile
§impl Serialize for TransportParameterProfile
impl Serialize for TransportParameterProfile
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for TransportParameterProfile
§impl TryFrom<TransportParameterProfileRepr> for TransportParameterProfile
impl TryFrom<TransportParameterProfileRepr> for TransportParameterProfile
§type Error = ProfileError
type Error = ProfileError
§fn try_from(
repr: TransportParameterProfileRepr,
) -> Result<TransportParameterProfile, <TransportParameterProfile as TryFrom<TransportParameterProfileRepr>>::Error>
fn try_from( repr: TransportParameterProfileRepr, ) -> Result<TransportParameterProfile, <TransportParameterProfile as TryFrom<TransportParameterProfileRepr>>::Error>
Auto Trait Implementations§
impl Freeze for TransportParameterProfile
impl RefUnwindSafe for TransportParameterProfile
impl Send for TransportParameterProfile
impl Sync for TransportParameterProfile
impl Unpin for TransportParameterProfile
impl UnsafeUnpin for TransportParameterProfile
impl UnwindSafe for TransportParameterProfile
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a rama_grpc::Request§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more