pub enum WindowsStartType {
Automatic,
Manual,
Disabled,
}Expand description
Caller-selected Windows service startup mode.
§Errors
Infallible: this type carries a caller choice and cannot fail. The Service
Control Manager conditions it takes part in — an access denial (OS code
5) and a registration that disappeared before the operation — are
reported by WindowsScmManager’s operations, not by this type.
Variants§
Automatic
Start automatically when Windows starts.
Manual
Start only when requested by an operator or manager.
Disabled
Leave registered but prevent start requests from succeeding.
Trait Implementations§
Source§impl Clone for WindowsStartType
impl Clone for WindowsStartType
impl Copy for WindowsStartType
Source§impl Debug for WindowsStartType
impl Debug for WindowsStartType
impl Eq for WindowsStartType
Source§impl PartialEq for WindowsStartType
impl PartialEq for WindowsStartType
impl StructuralPartialEq for WindowsStartType
Auto Trait Implementations§
impl Freeze for WindowsStartType
impl RefUnwindSafe for WindowsStartType
impl Send for WindowsStartType
impl Sync for WindowsStartType
impl Unpin for WindowsStartType
impl UnsafeUnpin for WindowsStartType
impl UnwindSafe for WindowsStartType
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