pub enum AnyControlMessage {
Draft07(ControlMessage),
Draft08(ControlMessage),
Draft09(ControlMessage),
Draft10(ControlMessage),
Draft11(ControlMessage),
Draft12(ControlMessage),
Draft13(ControlMessage),
Draft14(ControlMessage),
Draft15(ControlMessage),
Draft16(ControlMessage),
Draft17(ControlMessage),
}Expand description
A control message from any enabled draft.
Variants§
Draft07(ControlMessage)
Draft-draft07 variant.
Draft08(ControlMessage)
Draft-draft08 variant.
Draft09(ControlMessage)
Draft-draft09 variant.
Draft10(ControlMessage)
Draft-draft10 variant.
Draft11(ControlMessage)
Draft-draft11 variant.
Draft12(ControlMessage)
Draft-draft12 variant.
Draft13(ControlMessage)
Draft-draft13 variant.
Draft14(ControlMessage)
Draft-draft14 variant.
Draft15(ControlMessage)
Draft-draft15 variant.
Draft16(ControlMessage)
Draft-draft16 variant.
Draft17(ControlMessage)
Draft-draft17 variant.
Implementations§
Source§impl AnyControlMessage
impl AnyControlMessage
Sourcepub fn decode(
version: DraftVersion,
buf: &mut impl Buf,
) -> Result<Self, CodecError>
pub fn decode( version: DraftVersion, buf: &mut impl Buf, ) -> Result<Self, CodecError>
Decode from wire using the specified draft version.
Sourcepub fn encode(&self, buf: &mut impl BufMut) -> Result<(), CodecError>
pub fn encode(&self, buf: &mut impl BufMut) -> Result<(), CodecError>
Encode to wire using the appropriate draft’s format.
Sourcepub fn draft(&self) -> DraftVersion
pub fn draft(&self) -> DraftVersion
Returns the draft version this value belongs to.
Trait Implementations§
Source§impl Clone for AnyControlMessage
impl Clone for AnyControlMessage
Source§fn clone(&self) -> AnyControlMessage
fn clone(&self) -> AnyControlMessage
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 moreAuto Trait Implementations§
impl Freeze for AnyControlMessage
impl RefUnwindSafe for AnyControlMessage
impl Send for AnyControlMessage
impl Sync for AnyControlMessage
impl Unpin for AnyControlMessage
impl UnsafeUnpin for AnyControlMessage
impl UnwindSafe for AnyControlMessage
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