#[repr(u8)]pub enum Psk {
External(ExternalPsk),
Resumption(ResumptionPsk),
}
Expand description
The different PSK types.
Variants§
External(ExternalPsk)
An external PSK provided by the application.
Resumption(ResumptionPsk)
A resumption PSK derived from the MLS key schedule.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Psk
impl<'de> Deserialize<'de> for Psk
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 Psk
impl Deserialize for Psk
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 Psk
impl Ord for Psk
source§impl PartialOrd<Psk> for Psk
impl PartialOrd<Psk> for Psk
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 &Psk
impl Serialize for &Psk
source§impl Serialize for Psk
impl Serialize for Psk
impl Eq for Psk
impl StructuralEq for Psk
impl StructuralPartialEq for Psk
Auto Trait Implementations§
impl RefUnwindSafe for Psk
impl Send for Psk
impl Sync for Psk
impl Unpin for Psk
impl UnwindSafe for Psk
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