Struct windows_service::service::ServiceAction
source · pub struct ServiceAction {
pub action_type: ServiceActionType,
pub delay: Duration,
}Expand description
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: ServiceActionTypeThe action to be performed.
delay: DurationThe 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 u32.
Implementations§
Trait Implementations§
source§impl Clone for ServiceAction
impl Clone for ServiceAction
source§fn clone(&self) -> ServiceAction
fn clone(&self) -> ServiceAction
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 ServiceAction
impl Debug for ServiceAction
source§impl Hash for ServiceAction
impl Hash for ServiceAction
source§impl PartialEq<ServiceAction> for ServiceAction
impl PartialEq<ServiceAction> for ServiceAction
source§fn eq(&self, other: &ServiceAction) -> bool
fn eq(&self, other: &ServiceAction) -> bool
This method tests for
self and other values to be equal, and is used
by ==.