pub trait Subscribable {
type Tracked: Trackable<Subscribed = Self>;
// Required methods
fn level() -> Level;
fn parsers() -> Vec<ConnParser>;
fn process_packet(
mbuf: Mbuf,
subscription: &Subscription<'_, Self>,
conn_tracker: &mut ConnTracker<Self::Tracked>,
)
where Self: Sized;
}Expand description
Represents a generic subscribable type. All subscribable types must implement this trait.
Required Associated Types§
Required Methods§
Sourcefn parsers() -> Vec<ConnParser>
fn parsers() -> Vec<ConnParser>
Returns a list of protocol parsers required to parse the subscribable type.
Sourcefn process_packet(
mbuf: Mbuf,
subscription: &Subscription<'_, Self>,
conn_tracker: &mut ConnTracker<Self::Tracked>,
)where
Self: Sized,
fn process_packet(
mbuf: Mbuf,
subscription: &Subscription<'_, Self>,
conn_tracker: &mut ConnTracker<Self::Tracked>,
)where
Self: Sized,
Process a single incoming packet.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.