pub struct NativeH3SessionEntry {
pub der: Bytes,
pub max_early_data: u32,
pub received_at: Instant,
pub lifetime: Duration,
}Expand description
A single cache entry: the DER-encoded session and the early-data hint
at capture time. received_at + lifetime is honored independently
of BoringSSL’s own ticket-age check so callers can bound replay
windows below the server-issued ticket lifetime (RFC 9001 section
9.2: 0-RTT anti-replay requires the caller to mark requests
idempotent and the cache to bound replay attempts).
Fields§
§der: Bytes§max_early_data: u32§received_at: Instant§lifetime: DurationImplementations§
Trait Implementations§
Source§impl Clone for NativeH3SessionEntry
impl Clone for NativeH3SessionEntry
Source§fn clone(&self) -> NativeH3SessionEntry
fn clone(&self) -> NativeH3SessionEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for NativeH3SessionEntry
impl RefUnwindSafe for NativeH3SessionEntry
impl Send for NativeH3SessionEntry
impl Sync for NativeH3SessionEntry
impl Unpin for NativeH3SessionEntry
impl UnsafeUnpin for NativeH3SessionEntry
impl UnwindSafe for NativeH3SessionEntry
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