pub struct SecurityAlertSystem { /* private fields */ }Expand description
Security alert system
Implementations§
Source§impl SecurityAlertSystem
impl SecurityAlertSystem
pub fn new() -> Self
pub fn initialize(&mut self) -> Result<(), CryptographicError>
Sourcepub fn alert_types(&self) -> &[SecurityAlertType]
pub fn alert_types(&self) -> &[SecurityAlertType]
Get the configured alert types.
Sourcepub fn add_alert_type(&mut self, alert_type: SecurityAlertType)
pub fn add_alert_type(&mut self, alert_type: SecurityAlertType)
Add an alert type if not already present.
Sourcepub fn notification_channels(&self) -> &[NotificationChannel]
pub fn notification_channels(&self) -> &[NotificationChannel]
Get the configured notification channels.
Sourcepub fn add_notification_channel(&mut self, channel: NotificationChannel)
pub fn add_notification_channel(&mut self, channel: NotificationChannel)
Add a notification channel if not already present.
Sourcepub fn add_escalation_policy(&mut self, policy: EscalationPolicy)
pub fn add_escalation_policy(&mut self, policy: EscalationPolicy)
Add an escalation policy.
Sourcepub fn list_escalation_policies(
&self,
) -> impl Iterator<Item = &EscalationPolicy>
pub fn list_escalation_policies( &self, ) -> impl Iterator<Item = &EscalationPolicy>
Iterate over all registered escalation policies.
Auto Trait Implementations§
impl Freeze for SecurityAlertSystem
impl RefUnwindSafe for SecurityAlertSystem
impl Send for SecurityAlertSystem
impl Sync for SecurityAlertSystem
impl Unpin for SecurityAlertSystem
impl UnsafeUnpin for SecurityAlertSystem
impl UnwindSafe for SecurityAlertSystem
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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