pub struct ServiceDefinition {Show 15 fields
pub name: String,
pub description: String,
pub command: String,
pub arguments: Vec<String>,
pub environment: Vec<String>,
pub working_directory: String,
pub user: u32,
pub group: u32,
pub restart_policy: RestartPolicy,
pub restart_delay_ms: u32,
pub max_restarts: u32,
pub timeout_ms: u32,
pub dependencies: Vec<(String, DependencyType)>,
pub start_level: u32,
pub stop_timeout: Option<u32>,
}Expand description
Service definition
Fields§
§name: String§description: String§command: String§arguments: Vec<String>§environment: Vec<String>§working_directory: String§user: u32§group: u32§restart_policy: RestartPolicy§restart_delay_ms: u32§max_restarts: u32§timeout_ms: u32§dependencies: Vec<(String, DependencyType)>§start_level: u32§stop_timeout: Option<u32>Trait Implementations§
Source§impl Clone for ServiceDefinition
impl Clone for ServiceDefinition
Source§fn clone(&self) -> ServiceDefinition
fn clone(&self) -> ServiceDefinition
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ServiceDefinition
impl RefUnwindSafe for ServiceDefinition
impl Send for ServiceDefinition
impl Sync for ServiceDefinition
impl Unpin for ServiceDefinition
impl UnwindSafe for ServiceDefinition
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)