#[repr(u8)]pub enum Psk {
External(ExternalPsk),
Resumption(ResumptionPsk),
}Available on 32-bit or 64-bit only.
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>
Available on crate feature
std only.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
Source§impl Serialize for &Psk
impl Serialize for &Psk
Source§impl Serialize for Psk
impl Serialize 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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
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