pub enum LaunchDecision {
Restore {
identities: Vec<String>,
},
OpenStore,
}Expand description
The action the bare launcher should take after reading persisted state.
Variants§
Restore
Restore this roster in its persisted order.
OpenStore
Show the agent store so the user can choose a roster.
Implementations§
Source§impl LaunchDecision
impl LaunchDecision
Sourcepub fn should_restore(&self) -> bool
pub fn should_restore(&self) -> bool
Whether this decision contains a usable saved roster.
Sourcepub fn identities(&self) -> &[String]
pub fn identities(&self) -> &[String]
Return the identities to restore, or an empty slice for the store.
Trait Implementations§
Source§impl Clone for LaunchDecision
impl Clone for LaunchDecision
Source§fn clone(&self) -> LaunchDecision
fn clone(&self) -> LaunchDecision
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 LaunchDecision
impl Debug for LaunchDecision
impl Eq for LaunchDecision
Source§impl PartialEq for LaunchDecision
impl PartialEq for LaunchDecision
impl StructuralPartialEq for LaunchDecision
Auto Trait Implementations§
impl Freeze for LaunchDecision
impl RefUnwindSafe for LaunchDecision
impl Send for LaunchDecision
impl Sync for LaunchDecision
impl Unpin for LaunchDecision
impl UnsafeUnpin for LaunchDecision
impl UnwindSafe for LaunchDecision
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