pub struct WindowsServiceSpec {
pub name: String,
pub display_name: String,
pub description: String,
pub automatic_start: bool,
pub account: Option<String>,
pub command_line: String,
pub restart: RestartPolicy,
}Expand description
How CreateServiceW should be called, in a form that can be reviewed,
asserted, and printed on any platform.
The Windows backend builds its ServiceInfo from this value rather than
from the plan, so the descriptor a Linux CI leg asserts and the parameters a
Windows host registers cannot drift apart.
Fields§
§name: StringThe service name.
display_name: StringWhat services.msc shows.
description: StringThe one-line description.
automatic_start: booltrue for SERVICE_AUTO_START, false for SERVICE_DEMAND_START.
account: Option<String>The account, or None for LocalSystem, which is what
CreateServiceW takes a null lpServiceStartName to mean.
command_line: StringThe full launch command, quoted.
restart: RestartPolicyThe restart-on-failure policy.
Trait Implementations§
Source§impl Clone for WindowsServiceSpec
impl Clone for WindowsServiceSpec
Source§fn clone(&self) -> WindowsServiceSpec
fn clone(&self) -> WindowsServiceSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WindowsServiceSpec
impl Debug for WindowsServiceSpec
impl Eq for WindowsServiceSpec
Source§impl PartialEq for WindowsServiceSpec
impl PartialEq for WindowsServiceSpec
impl StructuralPartialEq for WindowsServiceSpec
Auto Trait Implementations§
impl Freeze for WindowsServiceSpec
impl RefUnwindSafe for WindowsServiceSpec
impl Send for WindowsServiceSpec
impl Sync for WindowsServiceSpec
impl Unpin for WindowsServiceSpec
impl UnsafeUnpin for WindowsServiceSpec
impl UnwindSafe for WindowsServiceSpec
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