pub enum MacOSLaunchMode {
LaunchAgent,
AppleScript,
SMAppService,
}Expand description
Determines how the auto launch is enabled on macOS.
Variants§
LaunchAgent
Use Launch Agent (plist file in ~/Library/LaunchAgents/)
AppleScript
Use AppleScript to add login item
SMAppService
User SMAppService API to enable the auto launch (macOS 13+)
Trait Implementations§
Source§impl Clone for MacOSLaunchMode
impl Clone for MacOSLaunchMode
Source§fn clone(&self) -> MacOSLaunchMode
fn clone(&self) -> MacOSLaunchMode
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 MacOSLaunchMode
impl Debug for MacOSLaunchMode
Source§impl Default for MacOSLaunchMode
impl Default for MacOSLaunchMode
Source§impl PartialEq for MacOSLaunchMode
impl PartialEq for MacOSLaunchMode
impl Copy for MacOSLaunchMode
impl Eq for MacOSLaunchMode
impl StructuralPartialEq for MacOSLaunchMode
Auto Trait Implementations§
impl Freeze for MacOSLaunchMode
impl RefUnwindSafe for MacOSLaunchMode
impl Send for MacOSLaunchMode
impl Sync for MacOSLaunchMode
impl Unpin for MacOSLaunchMode
impl UnwindSafe for MacOSLaunchMode
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