pub enum ZeroMqFormat {
Json,
Raw,
RawFramed,
}Expand description
ZeroMQ wire format.
json wraps each message as a JSON CanonicalMessage (batched into one frame);
raw sends/receives the payload bytes directly, one frame per message (metadata
is not transmitted); raw_framed sends a two-frame message — a JSON metadata frame
followed by the raw payload frame — keeping the payload binary-safe while still
carrying headers. Use raw/raw_framed for binary feeds such as JPEG, Avro or Protobuf.
Variants§
Trait Implementations§
Source§impl Clone for ZeroMqFormat
impl Clone for ZeroMqFormat
Source§fn clone(&self) -> ZeroMqFormat
fn clone(&self) -> ZeroMqFormat
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 ZeroMqFormat
impl Debug for ZeroMqFormat
Source§impl Default for ZeroMqFormat
impl Default for ZeroMqFormat
Source§fn default() -> ZeroMqFormat
fn default() -> ZeroMqFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ZeroMqFormat
impl<'de> Deserialize<'de> for ZeroMqFormat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ZeroMqFormat
Source§impl PartialEq for ZeroMqFormat
impl PartialEq for ZeroMqFormat
Source§impl Serialize for ZeroMqFormat
impl Serialize for ZeroMqFormat
impl StructuralPartialEq for ZeroMqFormat
Auto Trait Implementations§
impl Freeze for ZeroMqFormat
impl RefUnwindSafe for ZeroMqFormat
impl Send for ZeroMqFormat
impl Sync for ZeroMqFormat
impl Unpin for ZeroMqFormat
impl UnsafeUnpin for ZeroMqFormat
impl UnwindSafe for ZeroMqFormat
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