pub struct DetectionOptions {
pub msedge: bool,
pub unstable: bool,
pub prefer_msedge: bool,
}Fields§
§msedge: boolDetect Microsoft Edge
unstable: boolDetect unstable installations (beta, dev, unstable)
prefer_msedge: boolPrefer Microsoft Edge over Chrome/Chromium when both are installed.
By default Chrome/Chromium binaries are checked first, so a system with
both Chrome and Edge resolves to Chrome even when Self::msedge is
set. Enabling this checks Edge binaries first and falls back to
Chrome/Chromium only when no Edge install is found. Has no effect unless
Self::msedge is also enabled.
Trait Implementations§
Source§impl Clone for DetectionOptions
impl Clone for DetectionOptions
Source§fn clone(&self) -> DetectionOptions
fn clone(&self) -> DetectionOptions
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 DetectionOptions
impl Debug for DetectionOptions
Auto Trait Implementations§
impl Freeze for DetectionOptions
impl RefUnwindSafe for DetectionOptions
impl Send for DetectionOptions
impl Sync for DetectionOptions
impl Unpin for DetectionOptions
impl UnsafeUnpin for DetectionOptions
impl UnwindSafe for DetectionOptions
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