#[repr(i32)]
pub enum ServiceActionType {
None,
Reboot,
Restart,
RunCommand,
}Expand description
Enum describing the types of actions that the service control manager can perform.
Variants§
Implementations§
source§impl ServiceActionType
impl ServiceActionType
pub fn to_raw(&self) -> i32
pub fn from_raw(raw: i32) -> Result<ServiceActionType, ParseRawError>
Trait Implementations§
source§impl Clone for ServiceActionType
impl Clone for ServiceActionType
source§fn clone(&self) -> ServiceActionType
fn clone(&self) -> ServiceActionType
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 ServiceActionType
impl Debug for ServiceActionType
source§impl Hash for ServiceActionType
impl Hash for ServiceActionType
source§impl PartialEq<ServiceActionType> for ServiceActionType
impl PartialEq<ServiceActionType> for ServiceActionType
source§fn eq(&self, other: &ServiceActionType) -> bool
fn eq(&self, other: &ServiceActionType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.