Struct openmls::schedule::psk::ResumptionPsk
source · 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 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<ResumptionPsk> for ResumptionPsk
impl PartialEq<ResumptionPsk> for ResumptionPsk
source§fn eq(&self, other: &ResumptionPsk) -> bool
fn eq(&self, other: &ResumptionPsk) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ResumptionPsk> for ResumptionPsk
impl PartialOrd<ResumptionPsk> for ResumptionPsk
source§fn partial_cmp(&self, other: &ResumptionPsk) -> Option<Ordering>
fn partial_cmp(&self, other: &ResumptionPsk) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§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 StructuralEq for ResumptionPsk
impl StructuralPartialEq for ResumptionPsk
Auto Trait Implementations§
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