pub enum Payload {
TextJson(Value),
Utf8Bytes(Bytes),
Binary(Bytes),
}Expand description
Outgoing payload variants.
Variants§
TextJson(Value)
JSON value serialized to text.
Utf8Bytes(Bytes)
Raw UTF-8 bytes. (Still sent as Text in WS transport.)
Binary(Bytes)
Raw binary bytes.
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 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