SerializeMessage

Trait SerializeMessage 

Source
pub trait SerializeMessage {
    // Required method
    fn serialize_message(input: Self) -> Result<Message, Error>;
}
Expand description

Helper trait for message serialization

Required Methods§

Source

fn serialize_message(input: Self) -> Result<Message, Error>

serialize method that will be called by the producer

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SerializeMessage for String

Source§

impl SerializeMessage for Vec<u8>

Source§

impl<'a> SerializeMessage for &'a str

Source§

impl<'a> SerializeMessage for &'a [u8]

Source§

impl<'a> SerializeMessage for &String

Source§

impl<'a> SerializeMessage for ()

Implementors§