pub enum PacketPayload {
Bytes(Bytes),
Control(Value),
}Expand description
Packet payload carried over runtime ports.
Variants§
Bytes(Bytes)
Ordinary byte payload.
Control(Value)
Control-plane payload for orchestration messages.
Implementations§
Trait Implementations§
Source§impl Clone for PacketPayload
impl Clone for PacketPayload
Source§fn clone(&self) -> PacketPayload
fn clone(&self) -> PacketPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PacketPayload
impl Debug for PacketPayload
Source§impl From<&'static [u8]> for PacketPayload
impl From<&'static [u8]> for PacketPayload
Source§impl From<Bytes> for PacketPayload
impl From<Bytes> for PacketPayload
Source§impl From<Value> for PacketPayload
impl From<Value> for PacketPayload
Source§impl PartialEq for PacketPayload
impl PartialEq for PacketPayload
Source§fn eq(&self, other: &PacketPayload) -> bool
fn eq(&self, other: &PacketPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PacketPayload
impl StructuralPartialEq for PacketPayload
Auto Trait Implementations§
impl !Freeze for PacketPayload
impl RefUnwindSafe for PacketPayload
impl Send for PacketPayload
impl Sync for PacketPayload
impl Unpin for PacketPayload
impl UnsafeUnpin for PacketPayload
impl UnwindSafe for PacketPayload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).