Enum windows_service::service::ServiceControl [−][src]
pub enum ServiceControl {}Show 16 variants
Continue, Interrogate, NetBindAdd, NetBindDisable, NetBindEnable, NetBindRemove, ParamChange, Pause, Preshutdown, Shutdown, Stop, HardwareProfileChange(HardwareProfileChangeParam), PowerEvent(PowerEventParam), SessionChange(SessionChangeParam), TimeChange, TriggerEvent,
Expand description
Enum describing the service control operations.
Variants
Tuple Fields of HardwareProfileChange
Tuple Fields of PowerEvent
Tuple Fields of SessionChange
Implementations
Convert to ServiceControl from parameters received by service_control_handler
Safety
Invalid event_data
pointer may cause undefined behavior in some circumstances.
Please refer to MSDN for more info about the requirements:
https://docs.microsoft.com/en-us/windows/win32/api/winsvc/nc-winsvc-lphandler_function_ex
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ServiceControl
impl Send for ServiceControl
impl Sync for ServiceControl
impl Unpin for ServiceControl
impl UnwindSafe for ServiceControl
Blanket Implementations
Mutably borrows from an owned value. Read more