pub struct LaunchSpec {
pub binary: PathBuf,
pub mode: Mode,
pub env: Vec<(String, String)>,
pub startup_timeout: Duration,
pub label: String,
pub focus: bool,
}Fields§
§binary: PathBufA .app bundle, or a plain executable (wrapped into a bundle at a fixed per-app path on macOS, replaced in place with .previous kept).
mode: Mode§env: Vec<(String, String)>§startup_timeout: Duration§label: String§focus: boolOpt-in (default false): after the page is ready, make the window key and focused so
document.hasFocus(), :focus and :focus-visible match (keyboard and accessibility
scenarios). macOS activates the app and makes the window key (it may change the
frontmost app); Windows enables Chromium focus emulation and moves WebView2 focus into
the page, with no SetForegroundWindow. A focused launch cannot prove
owned_never_frontmost, so ui_stop skips that proof for it.
Trait Implementations§
Source§impl Clone for LaunchSpec
impl Clone for LaunchSpec
Auto Trait Implementations§
impl Freeze for LaunchSpec
impl RefUnwindSafe for LaunchSpec
impl Send for LaunchSpec
impl Sync for LaunchSpec
impl Unpin for LaunchSpec
impl UnsafeUnpin for LaunchSpec
impl UnwindSafe for LaunchSpec
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