pub struct Alert { /* private fields */ }Expand description
Standing alert.
Implementations§
Source§impl Alert
impl Alert
Sourcepub const fn priority(&self) -> AlertPriority
pub const fn priority(&self) -> AlertPriority
Priority.
Sourcepub const fn state(&self) -> AlertState
pub const fn state(&self) -> AlertState
State.
Sourcepub const fn last_reported_at(&self) -> Instant<Utc>
pub const fn last_reported_at(&self) -> Instant<Utc>
Time the condition was last reported.
Sourcepub const fn occurrences(&self) -> u32
pub const fn occurrences(&self) -> u32
Number of reports, the first included.
Trait Implementations§
impl Copy for Alert
impl StructuralPartialEq for Alert
Auto Trait Implementations§
impl Freeze for Alert
impl RefUnwindSafe for Alert
impl Send for Alert
impl Sync for Alert
impl Unpin for Alert
impl UnsafeUnpin for Alert
impl UnwindSafe for Alert
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