Struct windows_service::service::ServiceInfo
source · pub struct ServiceInfo {
pub name: OsString,
pub display_name: OsString,
pub service_type: ServiceType,
pub start_type: ServiceStartType,
pub error_control: ServiceErrorControl,
pub executable_path: PathBuf,
pub launch_arguments: Vec<OsString>,
pub dependencies: Vec<ServiceDependency>,
pub account_name: Option<OsString>,
pub account_password: Option<OsString>,
}Expand description
A struct that describes the service.
Fields§
§name: OsStringService name
display_name: OsStringUser-friendly service name
service_type: ServiceTypeThe service type
start_type: ServiceStartTypeThe service startup options
error_control: ServiceErrorControlThe severity of the error, and action taken, if this service fails to start.
executable_path: PathBufPath to the service binary
launch_arguments: Vec<OsString>Launch arguments passed to main when system starts the service.
This is not the same as arguments passed to service_main.
dependencies: Vec<ServiceDependency>Service dependencies
account_name: Option<OsString>Account to use for running the service.
for example: NT Authority\System.
use None to run as LocalSystem.
account_password: Option<OsString>Account password.
For system accounts this should normally be None.
Trait Implementations§
source§impl Clone for ServiceInfo
impl Clone for ServiceInfo
source§fn clone(&self) -> ServiceInfo
fn clone(&self) -> ServiceInfo
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 ServiceInfo
impl Debug for ServiceInfo
source§impl Hash for ServiceInfo
impl Hash for ServiceInfo
source§impl PartialEq<ServiceInfo> for ServiceInfo
impl PartialEq<ServiceInfo> for ServiceInfo
source§fn eq(&self, other: &ServiceInfo) -> bool
fn eq(&self, other: &ServiceInfo) -> bool
This method tests for
self and other values to be equal, and is used
by ==.