pub enum Choice {
WriteBack,
Discard,
Reveal,
}Expand description
What can be done about a session, as a button.
The set is concept 6.3’s: write-back, discard, and reveal-the-folder. It is deliberately small, because every member has to be expressible as a button on all three platforms and as a verb on the command line.
Variants§
WriteBack
Put the content file back into its container.
Discard
Throw the content file away and remove the session.
Reveal
Show the content directory, and decide later.
Implementations§
Source§impl Choice
impl Choice
Sourcepub fn key(self) -> &'static str
pub fn key(self) -> &'static str
The name this travels under, which a notification hands back rather than
the label. Stable, because a running notification service may hold a
question across an upgrade of this binary.
Never translated. This is what the notification service is handed
and what it echoes back when a button is pressed, and Self::from_key
matches on it: a German key would be a button whose press this build
cannot recognise. Self::label beside it is the half a person reads.
Trait Implementations§
impl Copy for Choice
impl Eq for Choice
impl StructuralPartialEq for Choice
Auto Trait Implementations§
impl Freeze for Choice
impl RefUnwindSafe for Choice
impl Send for Choice
impl Sync for Choice
impl Unpin for Choice
impl UnsafeUnpin for Choice
impl UnwindSafe for Choice
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.