pub enum Capsule {
Datagram {
context_id: u64,
payload: Bytes,
},
}Expand description
A decoded capsule.
Only the types this proxy acts on appear here; everything else is skipped inside the decoder and never surfaces.
Variants§
Datagram
A DATAGRAM capsule (RFC 9297 §3.5).
Trait Implementations§
impl Eq for Capsule
impl StructuralPartialEq for Capsule
Auto Trait Implementations§
impl !Freeze for Capsule
impl RefUnwindSafe for Capsule
impl Send for Capsule
impl Sync for Capsule
impl Unpin for Capsule
impl UnsafeUnpin for Capsule
impl UnwindSafe for Capsule
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