#[repr(u8)]pub enum ProposalOrRef {
Proposal(Proposal),
Reference(ProposalRef),
}
Expand description
https://www.rfc-editor.org/rfc/rfc9420.html#section-12.4-3
§TLS Presentation Language
struct {
ProposalOrRefType type;
select (ProposalOrRef.type) {
case proposal: Proposal proposal;
case reference: ProposalRef reference;
};
} ProposalOrRef;
Variants§
Proposal(Proposal)
Reference(ProposalRef)
Trait Implementations§
Source§impl Clone for ProposalOrRef
impl Clone for ProposalOrRef
Source§fn clone(&self) -> ProposalOrRef
fn clone(&self) -> ProposalOrRef
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProposalOrRef
impl Debug for ProposalOrRef
Source§impl<'de> Deserialize<'de> for ProposalOrRef
impl<'de> Deserialize<'de> for ProposalOrRef
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 ProposalOrRef
impl Deserialize for ProposalOrRef
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 ProposalOrRef
impl PartialEq for ProposalOrRef
Source§impl Serialize for &ProposalOrRef
impl Serialize for &ProposalOrRef
Source§impl Serialize for ProposalOrRef
impl Serialize for ProposalOrRef
Source§impl Serialize for ProposalOrRef
impl Serialize for ProposalOrRef
Source§impl Size for &ProposalOrRef
impl Size for &ProposalOrRef
fn tls_serialized_len(&self) -> usize
Source§impl Size for ProposalOrRef
impl Size for ProposalOrRef
fn tls_serialized_len(&self) -> usize
impl Eq for ProposalOrRef
impl StructuralPartialEq for ProposalOrRef
Auto Trait Implementations§
impl Freeze for ProposalOrRef
impl RefUnwindSafe for ProposalOrRef
impl Send for ProposalOrRef
impl Sync for ProposalOrRef
impl Unpin for ProposalOrRef
impl UnwindSafe for ProposalOrRef
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