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§
Source§impl ServiceAction
impl ServiceAction
Trait Implementations§
Source§impl Clone for ServiceAction
impl Clone for ServiceAction
Source§fn clone(&self) -> ServiceAction
fn clone(&self) -> ServiceAction
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 ServiceAction
impl Debug for ServiceAction
Source§impl Hash for ServiceAction
impl Hash for ServiceAction
Source§impl PartialEq for ServiceAction
impl PartialEq for ServiceAction
impl Eq for ServiceAction
impl StructuralPartialEq for ServiceAction
Auto Trait Implementations§
impl Freeze for ServiceAction
impl RefUnwindSafe for ServiceAction
impl Send for ServiceAction
impl Sync for ServiceAction
impl Unpin for ServiceAction
impl UnwindSafe for ServiceAction
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