#[repr(u8)]pub enum Psk {
External(ExternalPsk),
Resumption(ResumptionPsk),
Application(ApplicationPsk),
}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.
Application(ApplicationPsk)
Available on crate feature
extensions-draft-08 only.An application component PSK.
Trait Implementations§
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<'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 DeserializeBytes for Psk
impl DeserializeBytes for Psk
impl Eq for Psk
impl Key<CURRENT_VERSION> for Psk
Source§impl Ord for Psk
impl Ord for Psk
1.21.0 (const: unstable) · 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 PartialOrd for Psk
impl PartialOrd for Psk
impl PskId<CURRENT_VERSION> for Psk
Source§impl Serialize for Psk
impl Serialize for Psk
Source§impl Serialize for &Psk
impl Serialize 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 UnsafeUnpin 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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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