#[non_exhaustive]pub struct ClientSessionKey<'a> {
pub config_hash: [u8; 32],
pub server_name: ServerName<'a>,
}Expand description
Identifies a security context and server in the ClientSessionStore interface.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.config_hash: [u8; 32]A hash to partition the client storage between different security domains.
server_name: ServerName<'a>Transport-level identity of the server.
Implementations§
Source§impl ClientSessionKey<'_>
impl ClientSessionKey<'_>
Sourcepub fn to_owned(&self) -> ClientSessionKey<'static>
pub fn to_owned(&self) -> ClientSessionKey<'static>
Copy the value to own its contents.
Trait Implementations§
Source§impl<'a> Clone for ClientSessionKey<'a>
impl<'a> Clone for ClientSessionKey<'a>
Source§fn clone(&self) -> ClientSessionKey<'a>
fn clone(&self) -> ClientSessionKey<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ClientSessionKey<'a>
impl<'a> Debug for ClientSessionKey<'a>
Source§impl<'a> Hash for ClientSessionKey<'a>
impl<'a> Hash for ClientSessionKey<'a>
Source§impl<'a> PartialEq for ClientSessionKey<'a>
impl<'a> PartialEq for ClientSessionKey<'a>
impl<'a> Eq for ClientSessionKey<'a>
impl<'a> StructuralPartialEq for ClientSessionKey<'a>
Auto Trait Implementations§
impl<'a> Freeze for ClientSessionKey<'a>
impl<'a> RefUnwindSafe for ClientSessionKey<'a>
impl<'a> Send for ClientSessionKey<'a>
impl<'a> Sync for ClientSessionKey<'a>
impl<'a> Unpin for ClientSessionKey<'a>
impl<'a> UnwindSafe for ClientSessionKey<'a>
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