pub struct AvroDecoder { /* private fields */ }Expand description
Avro Decoder
Implementations§
Source§impl AvroDecoder
impl AvroDecoder
pub fn new(options: AvroDecoderOptions) -> Self
Trait Implementations§
Source§impl Debug for AvroDecoder
impl Debug for AvroDecoder
Source§impl Decoder for AvroDecoder
impl Decoder for AvroDecoder
Source§fn decode(
&self,
data: &[u8],
metadata: ArcEventMetadata,
) -> EncodeResult<EventBatch>
fn decode( &self, data: &[u8], metadata: ArcEventMetadata, ) -> EncodeResult<EventBatch>
Decodes bytes into an
EventBatch.
The caller must provide the starting metadata for the batch (e.g., source ID, ingestion time).Source§impl Default for AvroDecoder
impl Default for AvroDecoder
Source§fn default() -> AvroDecoder
fn default() -> AvroDecoder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AvroDecoder
impl RefUnwindSafe for AvroDecoder
impl Send for AvroDecoder
impl Sync for AvroDecoder
impl Unpin for AvroDecoder
impl UnsafeUnpin for AvroDecoder
impl UnwindSafe for AvroDecoder
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