Struct rustrc::Pid1Options
source · pub struct Pid1Options {
pub rc_conf_path: String,
pub rc_d_path: String,
}Expand description
Pid1Options captures the rc_conf and rc.d PATH variables.
Fields§
§rc_conf_path: String§rc_d_path: StringTrait Implementations§
source§impl Clone for Pid1Options
impl Clone for Pid1Options
source§fn clone(&self) -> Pid1Options
fn clone(&self) -> Pid1Options
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 CommandLine for Pid1Options
impl CommandLine for Pid1Options
source§fn add_opts(&self, prefix: Option<&str>, opts: &mut Options)
fn add_opts(&self, prefix: Option<&str>, opts: &mut Options)
Add options to the getopts parser.
source§fn matches(&mut self, prefix: Option<&str>, matches: &Matches)
fn matches(&mut self, prefix: Option<&str>, matches: &Matches)
Assign values to self using the provided getopts matches.
source§fn canonical_command_line(&self, prefix: Option<&str>) -> Vec<String>
fn canonical_command_line(&self, prefix: Option<&str>) -> Vec<String>
Return the canonical command line for this CommandLine.
source§fn from_command_line(usage: &str) -> (Self, Vec<String>)
fn from_command_line(usage: &str) -> (Self, Vec<String>)
Parse from the command line. This function will panic if a non-canonical command line is
provided.
source§fn from_command_line_relaxed(usage: &str) -> (Self, Vec<String>)
fn from_command_line_relaxed(usage: &str) -> (Self, Vec<String>)
Parse from the command line. This function will allow a non-canonical command line to
execute.
source§fn from_arguments(usage: &str, args: &[&str]) -> (Self, Vec<String>)
fn from_arguments(usage: &str, args: &[&str]) -> (Self, Vec<String>)
Parse from the provided arguments. This function will panic if a non-canonical command
line is provided.
source§impl Debug for Pid1Options
impl Debug for Pid1Options
source§impl Default for Pid1Options
impl Default for Pid1Options
source§impl From<&Pid1Options> for Value
impl From<&Pid1Options> for Value
source§fn from(options: &Pid1Options) -> Self
fn from(options: &Pid1Options) -> Self
Converts to this type from the input type.
source§impl PartialEq for Pid1Options
impl PartialEq for Pid1Options
impl Eq for Pid1Options
impl StructuralPartialEq for Pid1Options
Auto Trait Implementations§
impl Freeze for Pid1Options
impl RefUnwindSafe for Pid1Options
impl Send for Pid1Options
impl Sync for Pid1Options
impl Unpin for Pid1Options
impl UnwindSafe for Pid1Options
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)