pub struct Config {
pub duplicate_notice: Option<String>,
pub target_window_label: Option<String>,
pub focus_existing_window: bool,
/* private fields */
}Fields§
§duplicate_notice: Option<String>§target_window_label: Option<String>§focus_existing_window: boolImplementations§
Source§impl Config
impl Config
pub fn new() -> Self
pub fn with_duplicate_notice<S: Into<String>>(self, duplicate_notice: S) -> Self
pub fn with_target_window<S: Into<String>>(self, target_window_label: S) -> Self
pub fn without_window_focus(self) -> Self
pub fn on_activate<R, F>(self, callback: F) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl !RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl !UnwindSafe for Config
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