pub enum Alert<'a> {
Simple(&'a str),
Payload(AlertPayload<'a>),
}Expand description
The alert content. This can either be a plain message string, or an AlertPayload with more configuration.
Variants§
Simple(&'a str)
Payload(AlertPayload<'a>)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Alert<'a>
impl<'a> RefUnwindSafe for Alert<'a>
impl<'a> Send for Alert<'a>
impl<'a> Sync for Alert<'a>
impl<'a> Unpin for Alert<'a>
impl<'a> UnsafeUnpin for Alert<'a>
impl<'a> UnwindSafe for Alert<'a>
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