#[non_exhaustive]pub struct RunOptions {
pub single_instance: bool,
}Expand description
How the app runs, beyond who it is: what App gives its backend’s
run_with.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.single_instance: boolOne process per app id and user session: a later launch hands its
arguments to the running one (Ui::reopen) and
ends, without starting the app. Needs AppInfo::id.
Implementations§
Source§impl RunOptions
impl RunOptions
pub fn new() -> RunOptions
pub fn single_instance(self, single: bool) -> RunOptions
Trait Implementations§
Source§impl Clone for RunOptions
impl Clone for RunOptions
Source§impl Debug for RunOptions
impl Debug for RunOptions
Source§impl Default for RunOptions
impl Default for RunOptions
impl Eq for RunOptions
Source§impl PartialEq for RunOptions
impl PartialEq for RunOptions
impl StructuralPartialEq for RunOptions
Auto Trait Implementations§
impl Forget for RunOptions
impl Freeze for RunOptions
impl Move for RunOptions
impl RefUnwindSafe for RunOptions
impl Send for RunOptions
impl Sync for RunOptions
impl Unpin for RunOptions
impl UnsafeUnpin for RunOptions
impl UnwindSafe for RunOptions
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