pub enum Payload {
PartialDecode(PartialDecode),
RawEncode(Vec<Bytes>),
}Expand description
Payload in Incoming/outgoing Transmit
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 RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnsafeUnpin for Payload
impl UnwindSafe for Payload
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