#[repr(u8)]pub enum PskType {
Reserved = 0,
External = 1,
Resumption = 2,
Application = 3,
}
Variants§
Reserved = 0
External = 1
Resumption = 2
Application = 3
Available on crate feature
draft-ietf-mls-extensions
only.Trait Implementations§
Source§impl<'de> Deserialize<'de> for PskType
impl<'de> Deserialize<'de> for PskType
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 PskType
impl Deserialize for PskType
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 moreimpl Copy for PskType
impl Eq for PskType
impl StructuralPartialEq for PskType
Auto Trait Implementations§
impl Freeze for PskType
impl RefUnwindSafe for PskType
impl Send for PskType
impl Sync for PskType
impl Unpin for PskType
impl UnwindSafe for PskType
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