pub struct BytesPassthrough;Expand description
Passthrough deserializer: yields the raw bytes as owned Vec<u8>
records. Useful for byte-oriented pipelines and tests.
Trait Implementations§
Source§impl Clone for BytesPassthrough
impl Clone for BytesPassthrough
Source§fn clone(&self) -> BytesPassthrough
fn clone(&self) -> BytesPassthrough
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 BytesPassthrough
impl Debug for BytesPassthrough
Source§impl Default for BytesPassthrough
impl Default for BytesPassthrough
Source§fn default() -> BytesPassthrough
fn default() -> BytesPassthrough
Returns the “default value” for a type. Read more
Source§impl Deserializer<Owned<Vec<u8>>> for BytesPassthrough
impl Deserializer<Owned<Vec<u8>>> for BytesPassthrough
Source§fn deserialize<'buf>(
&mut self,
raw: &RawPayload<'buf>,
ack: &AckRef,
out: &mut dyn EmitRecord<'buf, Vec<u8>>,
) -> Result<(), DeserError>
fn deserialize<'buf>( &mut self, raw: &RawPayload<'buf>, ack: &AckRef, out: &mut dyn EmitRecord<'buf, Vec<u8>>, ) -> Result<(), DeserError>
Decode
raw, emitting each resulting record with the payload’s
metadata and a clone of ack.impl Copy for BytesPassthrough
Auto Trait Implementations§
impl Freeze for BytesPassthrough
impl RefUnwindSafe for BytesPassthrough
impl Send for BytesPassthrough
impl Sync for BytesPassthrough
impl Unpin for BytesPassthrough
impl UnsafeUnpin for BytesPassthrough
impl UnwindSafe for BytesPassthrough
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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