pub struct ComponentSelector { /* private fields */ }Expand description
Selects appropriate component implementations based on configuration
Implementations§
Source§impl ComponentSelector
impl ComponentSelector
Sourcepub fn create_event_processor(
&self,
config: &Config,
storage: Arc<dyn StorageProvider>,
) -> Result<Arc<dyn SecurityEventProcessor>>
pub fn create_event_processor( &self, config: &Config, storage: Arc<dyn StorageProvider>, ) -> Result<Arc<dyn SecurityEventProcessor>>
Create event processor
Sourcepub fn create_scanner(
&self,
config: &Config,
) -> Result<Arc<dyn EnhancedScanner>>
pub fn create_scanner( &self, config: &Config, ) -> Result<Arc<dyn EnhancedScanner>>
Create scanner
Sourcepub fn create_correlation_engine(
&self,
config: &Config,
storage: Arc<dyn StorageProvider>,
) -> Result<Arc<dyn CorrelationEngine>>
pub fn create_correlation_engine( &self, config: &Config, storage: Arc<dyn StorageProvider>, ) -> Result<Arc<dyn CorrelationEngine>>
Create correlation engine
Sourcepub fn create_rate_limiter(
&self,
config: &Config,
storage: Arc<dyn StorageProvider>,
) -> Result<Arc<dyn RateLimiter>>
pub fn create_rate_limiter( &self, config: &Config, storage: Arc<dyn StorageProvider>, ) -> Result<Arc<dyn RateLimiter>>
Create rate limiter
Sourcepub const fn is_enhanced_mode(&self, config: &Config) -> bool
pub const fn is_enhanced_mode(&self, config: &Config) -> bool
Check if enhanced mode is active
Auto Trait Implementations§
impl Freeze for ComponentSelector
impl !RefUnwindSafe for ComponentSelector
impl Send for ComponentSelector
impl Sync for ComponentSelector
impl Unpin for ComponentSelector
impl !UnwindSafe for ComponentSelector
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more