pub struct SharedSignalsManager { /* private fields */ }Expand description
Shared Signals Framework Manager
Enables secure sharing of security events across different domains and organizations
Implementations§
Sourcepub fn new(config: SharedSignalsConfig) -> Self
pub fn new(config: SharedSignalsConfig) -> Self
Create new Shared Signals manager
Sourcepub async fn send_event(&self, event: SecurityEvent) -> Result<()>
pub async fn send_event(&self, event: SecurityEvent) -> Result<()>
Send security event
Sourcepub async fn receive_event(&self, event: SecurityEvent) -> Result<()>
pub async fn receive_event(&self, event: SecurityEvent) -> Result<()>
Receive security event
Sourcepub async fn register_receiver(
&self,
receiver_id: String,
receiver: SignalReceiver,
) -> Result<()>
pub async fn register_receiver( &self, receiver_id: String, receiver: SignalReceiver, ) -> Result<()>
Register signal receiver
Sourcepub async fn unregister_receiver(&self, receiver_id: &str) -> Result<()>
pub async fn unregister_receiver(&self, receiver_id: &str) -> Result<()>
Remove signal receiver
Sourcepub fn get_config(&self) -> &SharedSignalsConfig
pub fn get_config(&self) -> &SharedSignalsConfig
Get configuration
Sourcepub fn is_event_type_supported(&self, event_type: &str) -> bool
pub fn is_event_type_supported(&self, event_type: &str) -> bool
Check if event type is supported
Sourcepub fn is_event_valid_age(&self, event: &SecurityEvent) -> bool
pub fn is_event_valid_age(&self, event: &SecurityEvent) -> bool
Validate event age against configuration
Sourcepub async fn list_receivers(&self) -> Vec<String>
pub async fn list_receivers(&self) -> Vec<String>
List registered receivers
Trait Implementations§
Source§fn clone(&self) -> SharedSignalsManager
fn clone(&self) -> SharedSignalsManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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