#[repr(i32)]pub enum ServiceActionType {
None = 0,
Reboot = 2,
Restart = 1,
RunCommand = 3,
}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 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 ServiceActionType
impl Debug for ServiceActionType
Source§impl Hash for ServiceActionType
impl Hash for ServiceActionType
Source§impl PartialEq for ServiceActionType
impl PartialEq for ServiceActionType
impl Copy for ServiceActionType
impl Eq for ServiceActionType
impl StructuralPartialEq for ServiceActionType
Auto Trait Implementations§
impl Freeze for ServiceActionType
impl RefUnwindSafe for ServiceActionType
impl Send for ServiceActionType
impl Sync for ServiceActionType
impl Unpin for ServiceActionType
impl UnwindSafe for ServiceActionType
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