[][src]Struct windows_service::service::ServiceInfo

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>,
}

A struct that describes the service.

Fields

name: OsString

Service name

display_name: OsString

User-friendly service name

service_type: ServiceType

The service type

start_type: ServiceStartType

The service startup options

error_control: ServiceErrorControl

The severity of the error, and action taken, if this service fails to start.

executable_path: PathBuf

Path 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

impl Clone for ServiceInfo[src]

impl Debug for ServiceInfo[src]

impl Eq for ServiceInfo[src]

impl Hash for ServiceInfo[src]

impl PartialEq<ServiceInfo> for ServiceInfo[src]

impl StructuralEq for ServiceInfo[src]

impl StructuralPartialEq for ServiceInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.