#[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 DeserializeBytes for Psk
impl DeserializeBytes for Psk
Source§impl Ord for Psk
impl Ord for Psk
Source§impl PartialOrd for Psk
impl PartialOrd for Psk
impl Eq for Psk
impl Key<CURRENT_VERSION> for Psk
impl PskId<CURRENT_VERSION> for Psk
impl StructuralPartialEq for Psk
Auto Trait Implementations§
impl Freeze for Psk
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
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