pub enum ActionResponse<'a> {
Custom(&'a str),
Closed(CloseReason),
}Expand description
Response to an action, a backward-compatible facade.
This type is preserved for source compatibility with existing match arms and type signatures.
Prefer NotificationResponse for new code, which owns its data and covers more cases.
Deprecated since 4.18.0 — use NotificationResponse instead.
Variants§
Custom(&'a str)
The user clicked a named action button (or the notification body, key "default").
Closed(CloseReason)
The notification was closed without any action being taken.
Trait Implementations§
Source§impl<'a> Clone for ActionResponse<'a>
impl<'a> Clone for ActionResponse<'a>
Source§fn clone(&self) -> ActionResponse<'a>
fn clone(&self) -> ActionResponse<'a>
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<'a> Debug for ActionResponse<'a>
impl<'a> Debug for ActionResponse<'a>
Auto Trait Implementations§
impl<'a> Freeze for ActionResponse<'a>
impl<'a> RefUnwindSafe for ActionResponse<'a>
impl<'a> Send for ActionResponse<'a>
impl<'a> Sync for ActionResponse<'a>
impl<'a> Unpin for ActionResponse<'a>
impl<'a> UnsafeUnpin for ActionResponse<'a>
impl<'a> UnwindSafe for ActionResponse<'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