#[repr(u8)]pub enum ProposalOrRefType {
Reserved = 0,
Proposal = 1,
Reference = 2,
}
Expand description
https://www.rfc-editor.org/rfc/rfc9420.html#section-12.4-3
§TLS Presentation Language
enum {
reserved(0),
proposal(1),
reference(2),
(255)
} ProposalOrRefType;
Variants§
Trait Implementations§
Source§impl Clone for ProposalOrRefType
impl Clone for ProposalOrRefType
Source§fn clone(&self) -> ProposalOrRefType
fn clone(&self) -> ProposalOrRefType
Returns a duplicate 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 ProposalOrRefType
impl Debug for ProposalOrRefType
Source§impl<'de> Deserialize<'de> for ProposalOrRefType
impl<'de> Deserialize<'de> for ProposalOrRefType
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 ProposalOrRefType
impl Deserialize for ProposalOrRefType
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 for ProposalOrRefType
impl PartialEq for ProposalOrRefType
Source§impl Serialize for &ProposalOrRefType
impl Serialize for &ProposalOrRefType
Source§impl Serialize for ProposalOrRefType
impl Serialize for ProposalOrRefType
Source§impl Serialize for ProposalOrRefType
impl Serialize for ProposalOrRefType
Source§impl Size for &ProposalOrRefType
impl Size for &ProposalOrRefType
fn tls_serialized_len(&self) -> usize
Source§impl Size for ProposalOrRefType
impl Size for ProposalOrRefType
fn tls_serialized_len(&self) -> usize
impl Copy for ProposalOrRefType
impl Eq for ProposalOrRefType
impl StructuralPartialEq for ProposalOrRefType
Auto Trait Implementations§
impl Freeze for ProposalOrRefType
impl RefUnwindSafe for ProposalOrRefType
impl Send for ProposalOrRefType
impl Sync for ProposalOrRefType
impl Unpin for ProposalOrRefType
impl UnwindSafe for ProposalOrRefType
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