pub struct GlobalOpts {
pub log: Option<PathBuf>,
pub debug: bool,
pub log_format: Option<String>,
pub root: Option<PathBuf>,
pub systemd_cgroup: bool,
}Fields§
§log: Option<PathBuf>set the log file to write youki logs to (default is ‘/dev/stderr’)
debug: boolchange log level to debug, but the log-level flag takes precedence
log_format: Option<String>set the log format (‘text’ (default), or ‘json’) (default: “text”)
root: Option<PathBuf>root directory to store container state
systemd_cgroup: boolEnable systemd cgroup manager, rather then use the cgroupfs directly.
Trait Implementations§
Source§impl Args for GlobalOpts
impl Args for GlobalOpts
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for GlobalOpts
impl CommandFactory for GlobalOpts
Source§impl Debug for GlobalOpts
impl Debug for GlobalOpts
Source§impl FromArgMatches for GlobalOpts
impl FromArgMatches for GlobalOpts
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for GlobalOpts
impl Parser for GlobalOpts
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for GlobalOpts
impl RefUnwindSafe for GlobalOpts
impl Send for GlobalOpts
impl Sync for GlobalOpts
impl Unpin for GlobalOpts
impl UnsafeUnpin for GlobalOpts
impl UnwindSafe for GlobalOpts
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