pub enum ProtectedPacket<'a> {
Short(ProtectedShort<'a>),
VersionNegotiation(ProtectedVersionNegotiation<'a>),
Initial(ProtectedInitial<'a>),
ZeroRtt(ProtectedZeroRtt<'a>),
Handshake(ProtectedHandshake<'a>),
Retry(ProtectedRetry<'a>),
}
Variants§
Short(ProtectedShort<'a>)
VersionNegotiation(ProtectedVersionNegotiation<'a>)
Initial(ProtectedInitial<'a>)
ZeroRtt(ProtectedZeroRtt<'a>)
Handshake(ProtectedHandshake<'a>)
Retry(ProtectedRetry<'a>)
Implementations§
Source§impl<'a> ProtectedPacket<'a>
impl<'a> ProtectedPacket<'a>
pub fn decode<Validator: Validator>( buffer: DecoderBufferMut<'a>, connection_info: &ConnectionInfo<'_>, connection_id_validator: &Validator, ) -> DecoderBufferMutResult<'a, Self>
Sourcepub fn destination_connection_id(&self) -> &[u8] ⓘ
pub fn destination_connection_id(&self) -> &[u8] ⓘ
Returns the packet’s destination connection ID
Sourcepub fn source_connection_id(&self) -> Option<&[u8]>
pub fn source_connection_id(&self) -> Option<&[u8]>
Returns the packet’s source connection ID
pub fn version(&self) -> Option<u32>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ProtectedPacket<'a>
impl<'a> RefUnwindSafe for ProtectedPacket<'a>
impl<'a> Send for ProtectedPacket<'a>
impl<'a> Sync for ProtectedPacket<'a>
impl<'a> Unpin for ProtectedPacket<'a>
impl<'a> !UnwindSafe for ProtectedPacket<'a>
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