pub enum InstanceScope {
CurrentSession,
Global,
}Expand description
Scope used when creating the named mutex for single-instance enforcement.
Variants§
CurrentSession
Use the current Windows session namespace (Local\...).
Global
Use the global Windows namespace (Global\...) so instances across
all sessions contend for the same named mutex.
Trait Implementations§
Source§impl Clone for InstanceScope
impl Clone for InstanceScope
Source§fn clone(&self) -> InstanceScope
fn clone(&self) -> InstanceScope
Returns a duplicate of the value. Read more
1.0.0 · 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 InstanceScope
impl Debug for InstanceScope
Source§impl PartialEq for InstanceScope
impl PartialEq for InstanceScope
impl Copy for InstanceScope
impl Eq for InstanceScope
impl StructuralPartialEq for InstanceScope
Auto Trait Implementations§
impl Freeze for InstanceScope
impl RefUnwindSafe for InstanceScope
impl Send for InstanceScope
impl Sync for InstanceScope
impl Unpin for InstanceScope
impl UnsafeUnpin for InstanceScope
impl UnwindSafe for InstanceScope
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