[][src]Struct windows_service::service::ServiceAction

pub struct ServiceAction {
    pub action_type: ServiceActionType,
    pub delay: Duration,
}

Represents an action that the service control manager can perform.

See https://docs.microsoft.com/en-us/windows/win32/api/winsvc/ns-winsvc-sc_action

Fields

action_type: ServiceActionType

The action to be performed.

delay: Duration

The time to wait before performing the specified action

Panics

Converting this to the FFI form will panic if the delay is too large to fit as milliseconds in a DWORD.

Implementations

impl ServiceAction[src]

pub fn from_raw(raw: SC_ACTION) -> Result<ServiceAction>[src]

pub fn to_raw(&self) -> SC_ACTION[src]

Trait Implementations

impl Clone for ServiceAction[src]

impl Debug for ServiceAction[src]

impl Eq for ServiceAction[src]

impl Hash for ServiceAction[src]

impl PartialEq<ServiceAction> for ServiceAction[src]

impl StructuralEq for ServiceAction[src]

impl StructuralPartialEq for ServiceAction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.