Trait vector::sources::util::framestream::FrameHandler

source ·
pub trait FrameHandler {
    // Required methods
    fn content_type(&self) -> String;
    fn max_frame_length(&self) -> usize;
    fn handle_event(
        &self,
        received_from: Option<Bytes>,
        frame: Bytes,
    ) -> Option<Event>;
    fn multithreaded(&self) -> bool;
    fn max_frame_handling_tasks(&self) -> u32;
    fn host_key(&self) -> &Option<OwnedValuePath>;
    fn timestamp_key(&self) -> Option<&OwnedValuePath>;
    fn source_type_key(&self) -> Option<&OwnedValuePath>;
}

Required Methods§

source

fn content_type(&self) -> String

source

fn max_frame_length(&self) -> usize

source

fn handle_event( &self, received_from: Option<Bytes>, frame: Bytes, ) -> Option<Event>

source

fn multithreaded(&self) -> bool

source

fn max_frame_handling_tasks(&self) -> u32

source

fn host_key(&self) -> &Option<OwnedValuePath>

source

fn timestamp_key(&self) -> Option<&OwnedValuePath>

source

fn source_type_key(&self) -> Option<&OwnedValuePath>

Implementors§

source§

impl<T: FrameHandler + Clone> FrameHandler for vector::sources::dnstap::tcp::DnstapFrameHandler<T>

source§

impl<T: FrameHandler + Clone> FrameHandler for vector::sources::dnstap::unix::DnstapFrameHandler<T>