pub enum Platform {
Windows,
MacOs,
Linux,
}Expand description
Which autostart mechanism to generate for.
Variants§
Windows
A Windows Scheduled Task, triggered at logon.
MacOs
A macOS launchd user agent.
Linux
A systemd user unit.
Implementations§
Source§impl Platform
impl Platform
Sourcepub fn artefact_name(&self) -> &'static str
pub fn artefact_name(&self) -> &'static str
The file name the generated artefact is written as.
Sourcepub fn install_hint(&self, artefact: &Path) -> String
pub fn install_hint(&self, artefact: &Path) -> String
What to run to register the generated artefact.
Trait Implementations§
impl Copy for Platform
impl Eq for Platform
impl StructuralPartialEq for Platform
Auto Trait Implementations§
impl Freeze for Platform
impl RefUnwindSafe for Platform
impl Send for Platform
impl Sync for Platform
impl Unpin for Platform
impl UnsafeUnpin for Platform
impl UnwindSafe for Platform
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