pub struct ProtobufDecoder { /* private fields */ }Expand description
Protobuf Decoder
Implementations§
Source§impl ProtobufDecoder
impl ProtobufDecoder
pub fn new( options: ProtobufDecoderOptions, message_descriptor: MessageDescriptor, schema: Arc<Schema>, ) -> Self
Trait Implementations§
Source§impl Decoder for ProtobufDecoder
impl Decoder for ProtobufDecoder
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).Auto Trait Implementations§
impl Freeze for ProtobufDecoder
impl RefUnwindSafe for ProtobufDecoder
impl Send for ProtobufDecoder
impl Sync for ProtobufDecoder
impl Unpin for ProtobufDecoder
impl UnsafeUnpin for ProtobufDecoder
impl UnwindSafe for ProtobufDecoder
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