Skip to main content

single_instance

Function single_instance 

Source
pub fn single_instance(id: &str) -> Result<SingleInstance>
Expand description

Claims to be the one instance of the app id, a reverse-DNS name such as com.example.notes, or, where another instance holds the claim, hands it this launch’s arguments. An error leaves the app to run as though alone.