pub enum SingleInstance {
First(FirstInstance),
Second,
}Expand description
Whether this launch is the app’s only instance.
Variants§
First(FirstInstance)
No other instance runs: this one is the app, and hears the later launches.
Second
Another instance runs, and has been handed this launch’s command line: this one should quit.
Auto Trait Implementations§
impl !RefUnwindSafe for SingleInstance
impl !Sync for SingleInstance
impl !UnwindSafe for SingleInstance
impl Forget for SingleInstance
impl Freeze for SingleInstancewhere
*const ArcInner<Arrivals> is !null: Freeze,
PhantomData<ArcInner<Arrivals>>: Freeze,
*const dyn Send is !null: Freeze,
PhantomData<dyn Send>: Freeze,
impl Move for SingleInstance
impl Send for SingleInstance
impl Unpin for SingleInstance
impl UnsafeUnpin for SingleInstancewhere
*const ArcInner<Arrivals> is !null: UnsafeUnpin,
PhantomData<ArcInner<Arrivals>>: UnsafeUnpin,
*const dyn Send is !null: UnsafeUnpin,
PhantomData<dyn Send>: UnsafeUnpin,
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