#[non_exhaustive]pub enum Payload {
PartialDecode(PartialDecode),
RawEncode(Vec<Bytes>),
}Expand description
Payload in Incoming/outgoing Transmit
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PartialDecode(PartialDecode)
An inbound packet whose header has been decoded but whose chunks have not.
RawEncode(Vec<Bytes>)
Outbound packets, already encoded and ready to hand to the transport.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Payload
impl Forget for Payload
impl Move for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnsafeUnpin for Payloadwhere
*const u8: UnsafeUnpin,
Align8<*mut ()>: UnsafeUnpin,
&'static Vtable: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Bytes>: UnsafeUnpin,
impl UnwindSafe for Payloadwhere
*const u8: UnwindSafe,
Align8<*mut ()>: UnwindSafe,
&'static Vtable: UnwindSafe,
RawVecInner: UnwindSafe,
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