pub enum Command {
Start,
Stop,
Pause,
Resume,
Extended(ExtendedCommand),
}Expand description
A command sent by the service control manager.
Variants§
Start
Starts the service.
Stop
Stops the service before process termination.
This command will only be sent if the can_stop method is called as part of construction.
Pause
Pauses the service.
This command will only be sent if the can_pause method is called as part of construction.
Resume
Resumes the service.
This command will only be sent if the can_pause method is called as part of construction.
Extended(ExtendedCommand)
An extended command.
The service receives only controls enabled with Service::can_accept.
Trait Implementations§
impl Copy for Command
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Forget for Command
impl Freeze for Command
impl Move for Command
impl RefUnwindSafe for Command
impl Send for Commandwhere
ExtendedCommand: Send,
impl Sync for Commandwhere
ExtendedCommand: Sync,
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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