Struct s2n_quic_core::connection::id::LocalId
source · [−]pub struct LocalId { /* private fields */ }Expand description
Uniquely identifies a QUIC connection between 2 peers
Implementations
sourceimpl LocalId
impl LocalId
sourcepub fn try_from_bytes(bytes: &[u8]) -> Option<LocalId>
pub fn try_from_bytes(bytes: &[u8]) -> Option<LocalId>
Creates a connection ID from a byte array.
If the passed byte array exceeds the maximum allowed length for
Connection IDs (20 bytes in QUIC v1) None will be returned.
All other input values are valid.
Trait Implementations
sourceimpl<'a> DecoderValue<'a> for LocalId
impl<'a> DecoderValue<'a> for LocalId
fn decode(buffer: DecoderBuffer<'a>) -> DecoderBufferResult<'a, Self>
sourceimpl<'a> DecoderValueMut<'a> for LocalId
impl<'a> DecoderValueMut<'a> for LocalId
fn decode_mut(buffer: DecoderBufferMut<'a>) -> DecoderBufferMutResult<'a, Self>
sourceimpl EncoderValue for LocalId
impl EncoderValue for LocalId
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 From<LocalId> for UnboundedId
impl From<LocalId> for UnboundedId
sourceimpl From<LocalId> for InitialSourceConnectionId
impl From<LocalId> for InitialSourceConnectionId
sourceimpl<'a> IntoEvent<ConnectionId<'a>> for &'a LocalId
impl<'a> IntoEvent<ConnectionId<'a>> for &'a LocalId
fn into_event(self) -> ConnectionId<'a>
sourceimpl Ord for LocalId
impl Ord for LocalId
sourceimpl PartialEq<LocalId> for RetrySourceConnectionId
impl PartialEq<LocalId> for RetrySourceConnectionId
sourceimpl PartialOrd<LocalId> for LocalId
impl PartialOrd<LocalId> for LocalId
sourcefn partial_cmp(&self, other: &LocalId) -> Option<Ordering>
fn partial_cmp(&self, other: &LocalId) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl PartialOrd<LocalId> for RetrySourceConnectionId
impl PartialOrd<LocalId> for RetrySourceConnectionId
sourcefn partial_cmp(&self, value: &LocalId) -> Option<Ordering>
fn partial_cmp(&self, value: &LocalId) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl TryFrom<LocalId> for RetrySourceConnectionId
impl TryFrom<LocalId> for RetrySourceConnectionId
impl Copy for LocalId
impl Eq for LocalId
impl StructuralEq for LocalId
impl StructuralPartialEq for LocalId
Auto Trait Implementations
impl RefUnwindSafe for LocalId
impl Send for LocalId
impl Sync for LocalId
impl Unpin for LocalId
impl UnwindSafe for LocalId
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