Enum s2n_quic_core::packet::ProtectedPacket
source · [−]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
sourceimpl<'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]ⓘNotable traits for &[u8]impl<'_> Read for &[u8]impl<'_> Write for &mut [u8]
pub fn destination_connection_id(&self) -> &[u8]ⓘNotable traits for &[u8]impl<'_> Read for &[u8]impl<'_> Write for &mut [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> 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
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