pub struct InitialSourceConnectionId(/* private fields */);Implementations§
Source§impl InitialSourceConnectionId
impl InitialSourceConnectionId
pub fn new<T: TryInto<UnboundedId>>(value: T) -> Option<Self>
Methods from Deref<Target = UnboundedId>§
Trait Implementations§
Source§impl Clone for InitialSourceConnectionId
impl Clone for InitialSourceConnectionId
Source§fn clone(&self) -> InitialSourceConnectionId
fn clone(&self) -> InitialSourceConnectionId
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InitialSourceConnectionId
impl Debug for InitialSourceConnectionId
Source§impl<'a> DecoderValue<'a> for InitialSourceConnectionId
impl<'a> DecoderValue<'a> for InitialSourceConnectionId
fn decode(buffer: DecoderBuffer<'a>) -> DecoderBufferResult<'a, Self>
Source§impl<'a> DecoderValueMut<'a> for InitialSourceConnectionId
impl<'a> DecoderValueMut<'a> for InitialSourceConnectionId
fn decode_mut(buffer: DecoderBufferMut<'a>) -> DecoderBufferMutResult<'a, Self>
Source§impl Default for InitialSourceConnectionId
impl Default for InitialSourceConnectionId
Source§impl Deref for InitialSourceConnectionId
impl Deref for InitialSourceConnectionId
Source§impl EncoderValue for InitialSourceConnectionId
impl EncoderValue for InitialSourceConnectionId
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
Lenfn encode_to_vec(&self) -> Vec<u8> ⓘ
Source§impl From<LocalId> for InitialSourceConnectionId
impl From<LocalId> for InitialSourceConnectionId
Source§impl Ord for InitialSourceConnectionId
impl Ord for InitialSourceConnectionId
Source§fn cmp(&self, other: &InitialSourceConnectionId) -> Ordering
fn cmp(&self, other: &InitialSourceConnectionId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd<UnboundedId> for InitialSourceConnectionId
impl PartialOrd<UnboundedId> for InitialSourceConnectionId
Source§impl PartialOrd for InitialSourceConnectionId
impl PartialOrd for InitialSourceConnectionId
Source§impl TransportParameter for InitialSourceConnectionId
impl TransportParameter for InitialSourceConnectionId
Source§type CodecValue = UnboundedId
type CodecValue = UnboundedId
Associated type for decoding/encoding the TransportParameter
Source§fn from_codec_value(value: Self::CodecValue) -> Self
fn from_codec_value(value: Self::CodecValue) -> Self
Create a
TransportParameter from the CodecValueSource§fn try_into_codec_value(&self) -> Option<&Self::CodecValue>
fn try_into_codec_value(&self) -> Option<&Self::CodecValue>
Attempts to convert the
TransportParameter into the CodecValueSource§fn 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 overridableSource§fn append_to_buffer(&self, buffer: &mut Vec<u8>)
fn append_to_buffer(&self, buffer: &mut Vec<u8>)
Appends this
TransportParameter to the given buffer containing
already encoded TransportParametersSource§impl TransportParameterValidator for InitialSourceConnectionId
impl TransportParameterValidator for InitialSourceConnectionId
Source§fn validate(self) -> Result<Self, DecoderError>
fn validate(self) -> Result<Self, DecoderError>
Validates that the transport parameter is in a valid state
Source§impl TryFrom<&[u8]> for InitialSourceConnectionId
impl TryFrom<&[u8]> for InitialSourceConnectionId
Source§impl TryFrom<UnboundedId> for InitialSourceConnectionId
impl TryFrom<UnboundedId> for InitialSourceConnectionId
Source§type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
impl Copy for InitialSourceConnectionId
impl Eq for InitialSourceConnectionId
impl StructuralPartialEq for InitialSourceConnectionId
Auto Trait Implementations§
impl Freeze for InitialSourceConnectionId
impl RefUnwindSafe for InitialSourceConnectionId
impl Send for InitialSourceConnectionId
impl Sync for InitialSourceConnectionId
impl Unpin for InitialSourceConnectionId
impl UnwindSafe for InitialSourceConnectionId
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.