pub struct TicketEntry {
pub ticket: Vec<u8>,
pub spki_fp: [u8; 32],
pub stored_at_unix_secs: u64,
}Expand description
One serialized ticket entry. ticket is opaque to this module —
the rustls ClientSessionStore wiring layer encodes/decodes it.
spki_fp binds the ticket to the cert observed when it was
acquired so a rotated cert force-invalidates the resumption.
Fields§
§ticket: Vec<u8>Opaque rustls ticket bytes.
spki_fp: [u8; 32]SHA-256 over the server’s SubjectPublicKeyInfo at ticket-acquire time.
stored_at_unix_secs: u64Wall-clock (UNIX seconds) when the ticket was stored. Used for MAX_AGE pruning.
Trait Implementations§
Source§impl Clone for TicketEntry
impl Clone for TicketEntry
Source§fn clone(&self) -> TicketEntry
fn clone(&self) -> TicketEntry
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 moreSource§impl Debug for TicketEntry
impl Debug for TicketEntry
Source§impl<'de> Deserialize<'de> for TicketEntry
impl<'de> Deserialize<'de> for TicketEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TicketEntry
impl RefUnwindSafe for TicketEntry
impl Send for TicketEntry
impl Sync for TicketEntry
impl Unpin for TicketEntry
impl UnsafeUnpin for TicketEntry
impl UnwindSafe for TicketEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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