Enum openmls::framing::ContentType
source · #[repr(u8)]pub enum ContentType {
Application,
Proposal,
Commit,
}
Expand description
// draft-ietf-mls-protocol-17
enum {
reserved(0),
application(1),
proposal(2),
commit(3),
(255)
} ContentType;
Variants§
Trait Implementations§
source§impl Clone for ContentType
impl Clone for ContentType
source§fn clone(&self) -> ContentType
fn clone(&self) -> ContentType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ContentType
impl Debug for ContentType
source§impl<'de> Deserialize<'de> for ContentType
impl<'de> Deserialize<'de> for ContentType
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 ContentType
impl Deserialize for ContentType
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 PartialEq<ContentType> for ContentType
impl PartialEq<ContentType> for ContentType
source§fn eq(&self, other: &ContentType) -> bool
fn eq(&self, other: &ContentType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for &ContentType
impl Serialize for &ContentType
source§impl Serialize for ContentType
impl Serialize for ContentType
source§impl Serialize for ContentType
impl Serialize for ContentType
source§impl Size for &ContentType
impl Size for &ContentType
fn tls_serialized_len(&self) -> usize
source§impl Size for ContentType
impl Size for ContentType
fn tls_serialized_len(&self) -> usize
source§impl TryFrom<u8> for ContentType
impl TryFrom<u8> for ContentType
impl Copy for ContentType
impl Eq for ContentType
impl StructuralEq for ContentType
impl StructuralPartialEq for ContentType
Auto Trait Implementations§
impl RefUnwindSafe for ContentType
impl Send for ContentType
impl Sync for ContentType
impl Unpin for ContentType
impl UnwindSafe for ContentType
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