pub struct OcsfDecoder {
pub config: OcsfDecoderConfig,
}Expand description
The OCSF Decoder.
Fields§
§config: OcsfDecoderConfigTrait Implementations§
Source§impl Decoder for OcsfDecoder
impl Decoder for OcsfDecoder
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 OcsfDecoder
impl RefUnwindSafe for OcsfDecoder
impl Send for OcsfDecoder
impl Sync for OcsfDecoder
impl Unpin for OcsfDecoder
impl UnsafeUnpin for OcsfDecoder
impl UnwindSafe for OcsfDecoder
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