#[non_exhaustive]pub enum AlertPanelAction {
None,
CreateAlert,
EditAlert(Box<Alert>),
DuplicateAlert(Box<Alert>),
ExportLog(String),
}Expand description
An action the host handles using its shared alert dialog or file export.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No host action.
CreateAlert
Open the shared alert creation dialog; submit its result with AlertsPanel::save.
EditAlert(Box<Alert>)
Edit this host-owned alert in the shared dialog.
DuplicateAlert(Box<Alert>)
Stage this copy of an alert, without an identifier and active, in the shared dialog
with AlertDialog::edit.
ExportLog(String)
Save this CSV text to a file chosen by the host.
Trait Implementations§
Source§impl Clone for AlertPanelAction
impl Clone for AlertPanelAction
Source§fn clone(&self) -> AlertPanelAction
fn clone(&self) -> AlertPanelAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AlertPanelAction
impl Debug for AlertPanelAction
Source§impl Default for AlertPanelAction
impl Default for AlertPanelAction
Source§fn default() -> AlertPanelAction
fn default() -> AlertPanelAction
Returns the “default value” for a type. Read more
Source§impl PartialEq for AlertPanelAction
impl PartialEq for AlertPanelAction
impl StructuralPartialEq for AlertPanelAction
Auto Trait Implementations§
impl Freeze for AlertPanelAction
impl RefUnwindSafe for AlertPanelAction
impl Send for AlertPanelAction
impl Sync for AlertPanelAction
impl Unpin for AlertPanelAction
impl UnsafeUnpin for AlertPanelAction
impl UnwindSafe for AlertPanelAction
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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