pub enum SerializationOutput<'a> {
Json(Cow<'a, [u8]>),
MsgPack(Cow<'a, [u8]>),
Protobuf(Cow<'a, [u8]>),
}
Expand description
The output of serializing a message for kafka.
Variants§
Json(Cow<'a, [u8]>)
Serialized as Json.
MsgPack(Cow<'a, [u8]>)
Serialized as MsgPack.
Protobuf(Cow<'a, [u8]>)
Serialized as Protobuf.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for SerializationOutput<'a>
impl<'a> Clone for SerializationOutput<'a>
Source§fn clone(&self) -> SerializationOutput<'a>
fn clone(&self) -> SerializationOutput<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for SerializationOutput<'a>
impl<'a> RefUnwindSafe for SerializationOutput<'a>
impl<'a> Send for SerializationOutput<'a>
impl<'a> Sync for SerializationOutput<'a>
impl<'a> Unpin for SerializationOutput<'a>
impl<'a> UnwindSafe for SerializationOutput<'a>
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