Struct s2n_quic::provider::connection_id::LocalId
source · pub struct LocalId { /* private fields */ }
Expand description
Uniquely identifies a QUIC connection between 2 peers
Implementations§
Trait Implementations§
source§impl<'a> DecoderValue<'a> for LocalId
impl<'a> DecoderValue<'a> for LocalId
fn decode( buffer: DecoderBuffer<'a>, ) -> Result<(LocalId, DecoderBuffer<'a>), DecoderError>
source§impl<'a> DecoderValueMut<'a> for LocalId
impl<'a> DecoderValueMut<'a> for LocalId
fn decode_mut( buffer: DecoderBufferMut<'a>, ) -> Result<(LocalId, DecoderBufferMut<'a>), DecoderError>
source§impl EncoderValue for LocalId
impl EncoderValue for LocalId
source§fn 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
source§fn encoding_size(&self) -> usize
fn encoding_size(&self) -> usize
Returns the encoding size with no buffer constrains
source§fn encoding_size_for_encoder<E>(&self, encoder: &E) -> usizewhere
E: Encoder,
fn encoding_size_for_encoder<E>(&self, encoder: &E) -> usizewhere
E: Encoder,
Returns the encoding size for the given encoder’s capacity
source§fn encode_with_len_prefix<Len, E>(&self, encoder: &mut E)
fn encode_with_len_prefix<Len, E>(&self, encoder: &mut E)
Encodes the value into the encoder with a prefix of
Len
fn encode_to_vec(&self) -> Vec<u8>
source§impl From<LocalId> for UnboundedId
impl From<LocalId> for UnboundedId
source§fn from(id: LocalId) -> UnboundedId
fn from(id: LocalId) -> UnboundedId
Converts to this type from the input type.
source§impl<'a> IntoEvent<ConnectionId<'a>> for &'a LocalId
impl<'a> IntoEvent<ConnectionId<'a>> for &'a LocalId
fn into_event(self) -> ConnectionId<'a>
source§impl Ord for LocalId
impl Ord for LocalId
source§impl PartialEq for LocalId
impl PartialEq for LocalId
source§impl PartialOrd for LocalId
impl PartialOrd for LocalId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for LocalId
impl Eq for LocalId
Auto Trait Implementations§
impl Freeze for LocalId
impl RefUnwindSafe for LocalId
impl Send for LocalId
impl Sync for LocalId
impl Unpin for LocalId
impl UnwindSafe for LocalId
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> PacketPayloadEncoder for Twhere
T: EncoderValue,
impl<T> PacketPayloadEncoder for Twhere
T: EncoderValue,
source§fn encoding_size_hint<E>(&mut self, encoder: &E, minimum_len: usize) -> usizewhere
E: Encoder,
fn encoding_size_hint<E>(&mut self, encoder: &E, minimum_len: usize) -> usizewhere
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.
source§impl<T> ToHex for T
impl<T> ToHex for T
source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)