Enum windows_service::service::ServiceStartType
source · #[repr(u32)]
pub enum ServiceStartType {
AutoStart,
OnDemand,
Disabled,
}Expand description
Enum describing the start options for windows services.
Variants§
AutoStart
Autostart on system startup
OnDemand
Service is enabled, can be started manually
Disabled
Disabled service
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 copy 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<ServiceStartType> for ServiceStartType
impl PartialEq<ServiceStartType> for ServiceStartType
source§fn eq(&self, other: &ServiceStartType) -> bool
fn eq(&self, other: &ServiceStartType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.