pub struct PrimaryHandle { /* private fields */ }Expand description
A handle representing the primary (first) instance of the application.
Holds the IPC listener alive for the lifetime of the application. When dropped, cleans up the socket file on Unix platforms.
Implementations§
Source§impl PrimaryHandle
impl PrimaryHandle
Sourcepub fn check_show(&self) -> bool
pub fn check_show(&self) -> bool
Returns true if another instance has sent a wake-up signal since the last call.
This is non-blocking and is intended to be polled from the application’s main loop, for example to bring the existing window to the foreground.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrimaryHandle
impl RefUnwindSafe for PrimaryHandle
impl Send for PrimaryHandle
impl !Sync for PrimaryHandle
impl Unpin for PrimaryHandle
impl UnsafeUnpin for PrimaryHandle
impl UnwindSafe for PrimaryHandle
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