Struct liboci_cli::GlobalOpts
source · 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§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)
Update from iterator, exit on error.
Auto Trait Implementations§
impl Freeze for GlobalOpts
impl RefUnwindSafe for GlobalOpts
impl Send for GlobalOpts
impl Sync for GlobalOpts
impl Unpin 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