pub struct DecryptedInitial(/* private fields */);Expand description
Decrypted payload of a QUIC Initial packet
Obtained via Incoming::decrypt. Can be used to extract information from
the TLS ClientHello without completing the handshake.
Implementations§
Source§impl DecryptedInitial
impl DecryptedInitial
Sourcepub fn alpns(&self) -> Option<IncomingAlpns>
pub fn alpns(&self) -> Option<IncomingAlpns>
Best-effort extraction of the ALPN protocols from the TLS ClientHello
Parses the CRYPTO frames to extract the ALPN extension. This is intended
for routing and filtering; it is not guaranteed to succeed if the
ClientHello spans multiple packets. Returns None if parsing fails.
Auto Trait Implementations§
impl !Freeze for DecryptedInitial
impl RefUnwindSafe for DecryptedInitial
impl Send for DecryptedInitial
impl Sync for DecryptedInitial
impl Unpin for DecryptedInitial
impl UnwindSafe for DecryptedInitial
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more