pub enum Content {
Application(Bytes),
Proposal(Proposal),
Commit(Commit),
}
Expand description
RFC9420 Sec.6 Content Container
Variants§
Application(Bytes)
Application Content Container
Proposal(Proposal)
Proposal Content Container
Commit(Commit)
Commit Content Container
Implementations§
Source§impl Content
impl Content
Sourcepub fn content_type(&self) -> ContentType
pub fn content_type(&self) -> ContentType
Return ContentType of Content Container
Trait Implementations§
Source§impl Deserializer for Content
impl Deserializer for Content
Source§impl Serializer for Content
impl Serializer for Content
impl Eq for Content
impl StructuralPartialEq for Content
Auto Trait Implementations§
impl !Freeze for Content
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnwindSafe for Content
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