pub struct ResumptionPsk { /* private fields */ }
Expand description
Resumption PSK.
Implementations§
Source§impl ResumptionPsk
impl ResumptionPsk
Sourcepub fn new(
usage: ResumptionPskUsage,
psk_group_id: GroupId,
psk_epoch: GroupEpoch,
) -> Self
pub fn new( usage: ResumptionPskUsage, psk_group_id: GroupId, psk_epoch: GroupEpoch, ) -> Self
Create a new ResumptionPsk
Sourcepub fn usage(&self) -> ResumptionPskUsage
pub fn usage(&self) -> ResumptionPskUsage
Return the usage
Sourcepub fn psk_group_id(&self) -> &GroupId
pub fn psk_group_id(&self) -> &GroupId
Return the GroupId
Sourcepub fn psk_epoch(&self) -> GroupEpoch
pub fn psk_epoch(&self) -> GroupEpoch
Return the GroupEpoch
Trait Implementations§
Source§impl Clone for ResumptionPsk
impl Clone for ResumptionPsk
Source§fn clone(&self) -> ResumptionPsk
fn clone(&self) -> ResumptionPsk
Returns a copy 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 Debug for ResumptionPsk
impl Debug for ResumptionPsk
Source§impl<'de> Deserialize<'de> for ResumptionPsk
impl<'de> Deserialize<'de> for ResumptionPsk
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
Source§impl Deserialize for ResumptionPsk
impl Deserialize for ResumptionPsk
Source§fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
This function deserializes the
bytes
from the provided a std::io::Read
and returns the populated struct. Read moreSource§impl DeserializeBytes for ResumptionPsk
impl DeserializeBytes for ResumptionPsk
Source§impl Ord for ResumptionPsk
impl Ord for ResumptionPsk
Source§fn cmp(&self, other: &ResumptionPsk) -> Ordering
fn cmp(&self, other: &ResumptionPsk) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ResumptionPsk
impl PartialEq for ResumptionPsk
Source§impl PartialOrd for ResumptionPsk
impl PartialOrd for ResumptionPsk
Source§impl Serialize for &ResumptionPsk
impl Serialize for &ResumptionPsk
Source§impl Serialize for ResumptionPsk
impl Serialize for ResumptionPsk
Source§impl Serialize for ResumptionPsk
impl Serialize for ResumptionPsk
Source§impl Size for &ResumptionPsk
impl Size for &ResumptionPsk
fn tls_serialized_len(&self) -> usize
Source§impl Size for ResumptionPsk
impl Size for ResumptionPsk
fn tls_serialized_len(&self) -> usize
impl Eq for ResumptionPsk
impl StructuralPartialEq for ResumptionPsk
Auto Trait Implementations§
impl Freeze for ResumptionPsk
impl RefUnwindSafe for ResumptionPsk
impl Send for ResumptionPsk
impl Sync for ResumptionPsk
impl Unpin for ResumptionPsk
impl UnwindSafe for ResumptionPsk
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,
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