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 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 ServiceInfo
impl Debug for ServiceInfo
Source§impl Hash for ServiceInfo
impl Hash for ServiceInfo
Source§impl PartialEq for ServiceInfo
impl PartialEq for ServiceInfo
impl Eq for ServiceInfo
impl StructuralPartialEq for ServiceInfo
Auto Trait Implementations§
impl Freeze for ServiceInfo
impl RefUnwindSafe for ServiceInfo
impl Send for ServiceInfo
impl Sync for ServiceInfo
impl Unpin for ServiceInfo
impl UnwindSafe for ServiceInfo
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