#[repr(u32)]pub enum ServiceStartType {
AutoStart = 2,
OnDemand = 3,
Disabled = 4,
SystemStart = 1,
BootStart = 0,
}Expand description
Enum describing the start options for windows services.
Variants§
AutoStart = 2
Autostart on system startup
OnDemand = 3
Service is enabled, can be started manually
Disabled = 4
Disabled service
SystemStart = 1
Driver start on system startup. This start type is only applicable to driver services.
BootStart = 0
Driver start on OS boot. This start type is only applicable to driver services.
Implementations§
Source§impl ServiceStartType
impl ServiceStartType
pub fn to_raw(&self) -> u32
pub fn from_raw(raw: u32) -> Result<ServiceStartType, ParseRawError>
Trait Implementations§
Source§impl Clone for ServiceStartType
impl Clone for ServiceStartType
Source§fn clone(&self) -> ServiceStartType
fn clone(&self) -> ServiceStartType
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 ServiceStartType
impl Debug for ServiceStartType
Source§impl Hash for ServiceStartType
impl Hash for ServiceStartType
Source§impl PartialEq for ServiceStartType
impl PartialEq for ServiceStartType
impl Copy for ServiceStartType
impl Eq for ServiceStartType
impl StructuralPartialEq for ServiceStartType
Auto Trait Implementations§
impl Freeze for ServiceStartType
impl RefUnwindSafe for ServiceStartType
impl Send for ServiceStartType
impl Sync for ServiceStartType
impl Unpin for ServiceStartType
impl UnwindSafe for ServiceStartType
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