Enum below_dump::command::DumpCommand [−][src]
pub enum DumpCommand {
System {
fields: Option<Vec<SystemOptionField>>,
opts: GeneralOpt,
pattern: Option<String>,
},
Disk {
fields: Option<Vec<DiskOptionField>>,
opts: GeneralOpt,
select: Option<SingleDiskModelFieldId>,
pattern: Option<String>,
},
Process {
fields: Option<Vec<ProcessOptionField>>,
opts: GeneralOpt,
select: Option<SingleProcessModelFieldId>,
pattern: Option<String>,
},
Cgroup {
fields: Option<Vec<CgroupOptionField>>,
opts: GeneralOpt,
select: Option<CgroupModelFieldId>,
pattern: Option<String>,
},
Iface {
fields: Option<Vec<IfaceOptionField>>,
opts: GeneralOpt,
select: Option<SingleNetModelFieldId>,
pattern: Option<String>,
},
Network {
fields: Option<Vec<NetworkOptionField>>,
opts: GeneralOpt,
pattern: Option<String>,
},
Transport {
fields: Option<Vec<TransportOptionField>>,
opts: GeneralOpt,
pattern: Option<String>,
},
}Variants
Show fields
Fields of System
fields: Option<Vec<SystemOptionField>>Select which fields to display and in what order.
opts: GeneralOptpattern: Option<String>Saved pattern in the dumprc file under [system] section.
Show fields
Fields of Disk
fields: Option<Vec<DiskOptionField>>Select which fields to display and in what order.
opts: GeneralOptselect: Option<SingleDiskModelFieldId>Select field for operation, use with –sort, –rsort, –filter, –top
pattern: Option<String>Saved pattern in the dumprc file under [disk] section.
Show fields
Fields of Process
fields: Option<Vec<ProcessOptionField>>Select which fields to display and in what order.
opts: GeneralOptselect: Option<SingleProcessModelFieldId>Select field for operation, use with –sort, –rsort, –filter, –top
pattern: Option<String>Saved pattern in the dumprc file under [process] section.
Show fields
Fields of Cgroup
fields: Option<Vec<CgroupOptionField>>Select which fields to display and in what order.
opts: GeneralOptselect: Option<CgroupModelFieldId>Select field for operation, use with –sort, –rsort, –filter, –top
pattern: Option<String>Saved pattern in the dumprc file under [cgroup] section.
Show fields
Fields of Iface
fields: Option<Vec<IfaceOptionField>>Select which fields to display and in what order.
opts: GeneralOptselect: Option<SingleNetModelFieldId>Select field for operation, use with –filter
pattern: Option<String>Saved pattern in the dumprc file under [iface] section.
Show fields
Fields of Network
fields: Option<Vec<NetworkOptionField>>Select which fields to display and in what order.
opts: GeneralOptpattern: Option<String>Saved pattern in the dumprc file under [network] section.
Show fields
Fields of Transport
fields: Option<Vec<TransportOptionField>>Select which fields to display and in what order.
opts: GeneralOptpattern: Option<String>Saved pattern in the dumprc file under [transport] section.
Trait Implementations
Builds the struct from clap::ArgMatches. It’s guaranteed to succeed
if matches originates from an App generated by StructOpt::clap called on
the same type, otherwise it must panic. Read more
Builds the struct from the command line arguments (std::env::args_os).
Calls clap::Error::exit on failure, printing the error message and aborting the program. Read more
Builds the struct from the command line arguments (std::env::args_os).
Unlike StructOpt::from_args, returns clap::Error on failure instead of aborting the program,
so calling .exit is up to you. Read more
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone, Gets the struct from any iterator such as a Vec of your making.
Print the error message and quit the program in case of failure. Read more
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone, Gets the struct from any iterator such as a Vec of your making. Read more
Auto Trait Implementations
impl RefUnwindSafe for DumpCommandimpl Send for DumpCommandimpl Sync for DumpCommandimpl Unpin for DumpCommandimpl UnwindSafe for DumpCommandBlanket Implementations
Mutably borrows from an owned value. Read more
Calls the given closure and return the result. Read more
Calls the given closure on self.