#[non_exhaustive]pub struct ResumptionHint {
pub session_id: Vec<u8>,
pub resumption_secret: Vec<u8>,
}std only.Expand description
0-RTT resumption material extracted from a completed session.
Produced by PhantomSession::resumption_hint after a handshake
completes, and fed back into connect_pinned_with_resumption to
attempt a 0-RTT reconnect to the same server.
Both fields are exactly 32 bytes — this record is the
UniFFI-representable surface for the internal (session_id, resumption_secret) tuple. The fields are Vec<u8> because UniFFI
has no fixed-size-array type, so the length is a runtime invariant
checked when the hint is used.
Store the hint alongside the pinned HybridVerifyingKey of the
server it was negotiated against: the resumption_secret is
server-pinned, and reusing a hint across servers is a configuration
bug.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session_id: Vec<u8>The negotiated session id (32 bytes).
resumption_secret: Vec<u8>The resumption secret (32 bytes) — sensitive; treat like a key.
Trait Implementations§
Source§impl Clone for ResumptionHint
impl Clone for ResumptionHint
Source§fn clone(&self) -> ResumptionHint
fn clone(&self) -> ResumptionHint
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<UT> ConvertError<UT> for ResumptionHint
impl<UT> ConvertError<UT> for ResumptionHint
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Debug for ResumptionHint
impl Debug for ResumptionHint
Source§impl<UT> FfiConverter<UT> for ResumptionHint
Available on crate feature bindings only.
impl<UT> FfiConverter<UT> for ResumptionHint
bindings only.