pub struct ServiceConfig {
pub config_path: PathBuf,
/* private fields */
}
Expand description
The configuration for constructing a Service.
Fields§
§config_path: PathBuf
The path to the configuration data for the service
Implementations§
Source§impl ServiceConfig
impl ServiceConfig
Sourcepub fn new(
arguments: Vec<String>,
description: String,
binary: PathBuf,
username: Option<String>,
) -> Self
pub fn new( arguments: Vec<String>, description: String, binary: PathBuf, username: Option<String>, ) -> Self
Build a new service config with reasonable defaults.
§Arguments
- display - The display name of the service
- arguments - The list of arguments to provide to the service
- description - The description of the service
- binary - The path to the binary that runs the service
- config_path - The configuration path for the service
- username - The username the service runs as
Auto Trait Implementations§
impl Freeze for ServiceConfig
impl RefUnwindSafe for ServiceConfig
impl Send for ServiceConfig
impl Sync for ServiceConfig
impl Unpin for ServiceConfig
impl UnwindSafe for ServiceConfig
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