pub struct OcsfEncoder {}Expand description
The OCSF Encoder.
Trait Implementations§
Source§impl Default for OcsfEncoder
impl Default for OcsfEncoder
Source§fn default() -> OcsfEncoder
fn default() -> OcsfEncoder
Returns the “default value” for a type. Read more
Source§impl Encoder for OcsfEncoder
impl Encoder for OcsfEncoder
Source§fn encode(&self, batch: &EventBatch) -> EncodeResult<Bytes>
fn encode(&self, batch: &EventBatch) -> EncodeResult<Bytes>
Encodes a single
EventBatch into a single byte stream.
This is typically used for batch-oriented sinks like S3 or GCS.Source§fn encode_individual(&self, batch: &EventBatch) -> Result<Vec<Bytes>, Error>
fn encode_individual(&self, batch: &EventBatch) -> Result<Vec<Bytes>, Error>
Encodes an
EventBatch into multiple independent byte streams (one per event).
This is typically used for message-oriented sinks like Kafka.
Default implementation just returns a single Vec with the output of encode.Auto Trait Implementations§
impl Freeze for OcsfEncoder
impl RefUnwindSafe for OcsfEncoder
impl Send for OcsfEncoder
impl Sync for OcsfEncoder
impl Unpin for OcsfEncoder
impl UnsafeUnpin for OcsfEncoder
impl UnwindSafe for OcsfEncoder
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