pub struct InitialSourceConnectionId(_);Implementations
sourceimpl InitialSourceConnectionId
impl InitialSourceConnectionId
pub fn new<T: TryInto<UnboundedId>>(value: T) -> Option<Self>
Methods from Deref<Target = UnboundedId>
Trait Implementations
sourceimpl Clone for InitialSourceConnectionId
impl Clone for InitialSourceConnectionId
sourcefn clone(&self) -> InitialSourceConnectionId
fn clone(&self) -> InitialSourceConnectionId
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 InitialSourceConnectionId
impl Debug for InitialSourceConnectionId
sourceimpl<'a> DecoderValue<'a> for InitialSourceConnectionId
impl<'a> DecoderValue<'a> for InitialSourceConnectionId
fn decode(buffer: DecoderBuffer<'a>) -> DecoderBufferResult<'a, Self>
sourceimpl<'a> DecoderValueMut<'a> for InitialSourceConnectionId
impl<'a> DecoderValueMut<'a> for InitialSourceConnectionId
fn decode_mut(buffer: DecoderBufferMut<'a>) -> DecoderBufferMutResult<'a, Self>
sourceimpl Default for InitialSourceConnectionId
impl Default for InitialSourceConnectionId
sourceimpl Deref for InitialSourceConnectionId
impl Deref for InitialSourceConnectionId
type Target = UnboundedId
type Target = UnboundedId
The resulting type after dereferencing.
sourceimpl EncoderValue for InitialSourceConnectionId
impl EncoderValue for InitialSourceConnectionId
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 InitialSourceConnectionId
impl From<LocalId> for InitialSourceConnectionId
sourceimpl Ord for InitialSourceConnectionId
impl Ord for InitialSourceConnectionId
sourceimpl PartialEq<InitialSourceConnectionId> for InitialSourceConnectionId
impl PartialEq<InitialSourceConnectionId> for InitialSourceConnectionId
sourcefn eq(&self, other: &InitialSourceConnectionId) -> bool
fn eq(&self, other: &InitialSourceConnectionId) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &InitialSourceConnectionId) -> bool
fn ne(&self, other: &InitialSourceConnectionId) -> bool
This method tests for !=.
sourceimpl PartialOrd<InitialSourceConnectionId> for InitialSourceConnectionId
impl PartialOrd<InitialSourceConnectionId> for InitialSourceConnectionId
sourcefn partial_cmp(&self, other: &InitialSourceConnectionId) -> Option<Ordering>
fn partial_cmp(&self, other: &InitialSourceConnectionId) -> 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<UnboundedId> for InitialSourceConnectionId
impl PartialOrd<UnboundedId> for InitialSourceConnectionId
sourcefn partial_cmp(&self, value: &UnboundedId) -> Option<Ordering>
fn partial_cmp(&self, value: &UnboundedId) -> 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 TransportParameter for InitialSourceConnectionId
impl TransportParameter for InitialSourceConnectionId
type CodecValue = UnboundedId
type CodecValue = UnboundedId
Associated type for decoding/encoding the TransportParameter
sourcefn from_codec_value(value: Self::CodecValue) -> Self
fn from_codec_value(value: Self::CodecValue) -> Self
Create a TransportParameter from the CodecValue
sourcefn try_into_codec_value(&self) -> Option<&Self::CodecValue>
fn try_into_codec_value(&self) -> Option<&Self::CodecValue>
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 InitialSourceConnectionId
impl TransportParameterValidator for InitialSourceConnectionId
sourcefn validate(self) -> Result<Self, DecoderError>
fn validate(self) -> Result<Self, DecoderError>
Validates that the transport parameter is in a valid state
sourceimpl TryFrom<&[u8]> for InitialSourceConnectionId
impl TryFrom<&[u8]> for InitialSourceConnectionId
sourceimpl TryFrom<UnboundedId> for InitialSourceConnectionId
impl TryFrom<UnboundedId> for InitialSourceConnectionId
type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
sourcefn try_from(value: UnboundedId) -> Result<Self, Self::Error>
fn try_from(value: UnboundedId) -> Result<Self, Self::Error>
Performs the conversion.
impl Copy for InitialSourceConnectionId
impl Eq for InitialSourceConnectionId
impl StructuralEq for InitialSourceConnectionId
impl StructuralPartialEq for InitialSourceConnectionId
Auto Trait Implementations
impl RefUnwindSafe for InitialSourceConnectionId
impl Send for InitialSourceConnectionId
impl Sync for InitialSourceConnectionId
impl Unpin for InitialSourceConnectionId
impl UnwindSafe for InitialSourceConnectionId
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