Struct s2n_quic_core::transport::parameters::PreferredAddress
source · [−]pub struct PreferredAddress {
pub ipv4_address: Option<SocketAddressV4>,
pub ipv6_address: Option<SocketAddressV6>,
pub connection_id: UnboundedId,
pub stateless_reset_token: Token,
}Fields
ipv4_address: Option<SocketAddressV4>ipv6_address: Option<SocketAddressV6>connection_id: UnboundedIdstateless_reset_token: TokenTrait Implementations
sourceimpl Clone for PreferredAddress
impl Clone for PreferredAddress
sourcefn clone(&self) -> PreferredAddress
fn clone(&self) -> PreferredAddress
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PreferredAddress
impl Debug for PreferredAddress
sourceimpl<'a> DecoderValue<'a> for PreferredAddress
impl<'a> DecoderValue<'a> for PreferredAddress
fn decode(buffer: DecoderBuffer<'a>) -> DecoderBufferResult<'a, Self>
sourceimpl<'a> DecoderValueMut<'a> for PreferredAddress
impl<'a> DecoderValueMut<'a> for PreferredAddress
fn decode_mut(buffer: DecoderBufferMut<'a>) -> DecoderBufferMutResult<'a, Self>
sourceimpl EncoderValue for PreferredAddress
impl EncoderValue for PreferredAddress
sourcefn encode_mut<E>(&mut self, encoder: &mut E) where
E: Encoder,
fn encode_mut<E>(&mut self, encoder: &mut E) where
E: Encoder,
Encodes the value into the encoder, while potentially mutating the value itself
sourcefn encoding_size(&self) -> usize
fn encoding_size(&self) -> usize
Returns the encoding size with no buffer constrains
sourcefn encoding_size_for_encoder<E>(&self, encoder: &E) -> usize where
E: Encoder,
fn encoding_size_for_encoder<E>(&self, encoder: &E) -> usize where
E: Encoder,
Returns the encoding size for the given encoder’s capacity
sourceimpl<'a> IntoEvent<PreferredAddress<'a>> for &'a PreferredAddress
impl<'a> IntoEvent<PreferredAddress<'a>> for &'a PreferredAddress
fn into_event(self) -> PreferredAddress<'a>
sourceimpl PartialEq<PreferredAddress> for PreferredAddress
impl PartialEq<PreferredAddress> for PreferredAddress
sourcefn eq(&self, other: &PreferredAddress) -> bool
fn eq(&self, other: &PreferredAddress) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &PreferredAddress) -> bool
fn ne(&self, other: &PreferredAddress) -> bool
This method tests for !=.
sourceimpl TransportParameter for PreferredAddress
impl TransportParameter for PreferredAddress
type CodecValue = PreferredAddress
type CodecValue = PreferredAddress
Associated type for decoding/encoding the TransportParameter
sourceconst ID: VarInt = TransportParameterId::from_u8(0x0d)
const ID: VarInt = TransportParameterId::from_u8(0x0d)
The ID or tag for the TransportParameter
sourcefn from_codec_value(value: Self) -> Self
fn from_codec_value(value: Self) -> Self
Create a TransportParameter from the CodecValue
sourcefn try_into_codec_value(&self) -> Option<&Self>
fn try_into_codec_value(&self) -> Option<&Self>
Attempts to convert the TransportParameter into the CodecValue
sourcefn default_value() -> Self
fn default_value() -> Self
Returns the default value for the TransportParameter
This is used instead of Default::default so it is
easily overridable Read more
sourceimpl TransportParameterValidator for PreferredAddress
impl TransportParameterValidator for PreferredAddress
sourcefn validate(self) -> Result<Self, DecoderError>
fn validate(self) -> Result<Self, DecoderError>
Validates that the transport parameter is in a valid state
sourceimpl Unspecified for PreferredAddress
impl Unspecified for PreferredAddress
sourcefn is_unspecified(&self) -> bool
fn is_unspecified(&self) -> bool
Returns true if the value is unspecified
sourcefn filter_unspecified(self) -> Option<Self>
fn filter_unspecified(self) -> Option<Self>
Coerce a potentially unspecified value into an Option
impl Copy for PreferredAddress
impl StructuralPartialEq for PreferredAddress
Auto Trait Implementations
impl RefUnwindSafe for PreferredAddress
impl Send for PreferredAddress
impl Sync for PreferredAddress
impl Unpin for PreferredAddress
impl UnwindSafe for PreferredAddress
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> PacketPayloadEncoder for T where
T: EncoderValue,
impl<T> PacketPayloadEncoder for T where
T: EncoderValue,
sourcefn encoding_size_hint<E>(&mut self, encoder: &E, minimum_len: usize) -> usize where
E: Encoder,
fn encoding_size_hint<E>(&mut self, encoder: &E, minimum_len: usize) -> usize where
E: Encoder,
Returns an estimate of the encoding size of the payload. This may be inaccurate from what actually is encoded. Estimates should be less than or equal to what is actually written. Implementations can return 0 to skip encoding. Read more