#[non_exhaustive]pub struct ByteArraySerializer;Expand description
Serializes byte arrays by passing them through unchanged.
Corresponds to Java’s org.apache.kafka.common.serialization.ByteArraySerializer.
Implementations§
Trait Implementations§
Source§impl Clone for ByteArraySerializer
impl Clone for ByteArraySerializer
Source§fn clone(&self) -> ByteArraySerializer
fn clone(&self) -> ByteArraySerializer
Returns a duplicate 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 moreSource§impl Debug for ByteArraySerializer
impl Debug for ByteArraySerializer
Source§impl Default for ByteArraySerializer
impl Default for ByteArraySerializer
Source§fn default() -> ByteArraySerializer
fn default() -> ByteArraySerializer
Returns the “default value” for a type. Read more
Source§impl Serializer<[u8]> for ByteArraySerializer
impl Serializer<[u8]> for ByteArraySerializer
Source§impl Serializer<Vec<u8>> for ByteArraySerializer
impl Serializer<Vec<u8>> for ByteArraySerializer
Source§fn serialize(
&self,
_topic: &str,
data: Option<&Vec<u8>>,
) -> Result<Option<Vec<u8>>, Error>
fn serialize( &self, _topic: &str, data: Option<&Vec<u8>>, ) -> Result<Option<Vec<u8>>, Error>
Convert
data into a byte array. Read moreAuto Trait Implementations§
impl Freeze for ByteArraySerializer
impl RefUnwindSafe for ByteArraySerializer
impl Send for ByteArraySerializer
impl Sync for ByteArraySerializer
impl Unpin for ByteArraySerializer
impl UnsafeUnpin for ByteArraySerializer
impl UnwindSafe for ByteArraySerializer
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