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>,
    },
    Btrfs {
        fields: Option<Vec<BtrfsOptionField>>,
        opts: GeneralOpt,
        select: Option<BtrfsModelFieldId>,
        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<SingleCgroupModelFieldId>,
        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

System

Fields

fields: Option<Vec<SystemOptionField>>

Select which fields to display and in what order.

opts: GeneralOpt
pattern: Option<String>

Saved pattern in the dumprc file under [system] section.

Disk

Fields

fields: Option<Vec<DiskOptionField>>

Select which fields to display and in what order.

opts: GeneralOpt
select: Option<SingleDiskModelFieldId>

Select field for operation, use with –sort, –rsort, –filter, –top

pattern: Option<String>

Saved pattern in the dumprc file under [disk] section.

Btrfs

Fields

fields: Option<Vec<BtrfsOptionField>>

Select which fields to display and in what order.

opts: GeneralOpt
select: Option<BtrfsModelFieldId>

Select field for operation, use with –sort, –rsort, –filter, –top

pattern: Option<String>

Saved pattern in the dumprc file under [btrfs] section.

Process

Fields

fields: Option<Vec<ProcessOptionField>>

Select which fields to display and in what order.

opts: GeneralOpt
select: Option<SingleProcessModelFieldId>

Select field for operation, use with –sort, –rsort, –filter, –top

pattern: Option<String>

Saved pattern in the dumprc file under [process] section.

Cgroup

Fields

fields: Option<Vec<CgroupOptionField>>

Select which fields to display and in what order.

opts: GeneralOpt
select: Option<SingleCgroupModelFieldId>

Select field for operation, use with –sort, –rsort, –filter, –top

pattern: Option<String>

Saved pattern in the dumprc file under [cgroup] section.

Iface

Fields

fields: Option<Vec<IfaceOptionField>>

Select which fields to display and in what order.

opts: GeneralOpt
select: Option<SingleNetModelFieldId>

Select field for operation, use with –filter

pattern: Option<String>

Saved pattern in the dumprc file under [iface] section.

Network

Fields

fields: Option<Vec<NetworkOptionField>>

Select which fields to display and in what order.

opts: GeneralOpt
pattern: Option<String>

Saved pattern in the dumprc file under [network] section.

Transport

Fields

fields: Option<Vec<TransportOptionField>>

Select which fields to display and in what order.

opts: GeneralOpt
pattern: Option<String>

Saved pattern in the dumprc file under [transport] section.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Deprecated, replaced with CommandFactory::command
Deprecated, replaced with CommandFactory::command_for_update
Build a Command that can instantiate Self. Read more
Build a Command that can update self. Read more
Formats the value using the given formatter. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Assign values from ArgMatches to self.
Assign values from ArgMatches to self.
Parse from std::env::args_os(), exit on error
Parse from std::env::args_os(), return Err on error.
Parse from iterator, exit on error
Parse from iterator, return Err on error.
Update from iterator, exit on error
Update from iterator, return Err on error.
Append to Command so it can instantiate Self. Read more
Append to Command so it can update self. Read more
Test whether Self can parse a specific subcommand

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Calls the given closure and return the result. Read more
Calls the given closure on self.
Calls the given closure on self.
Calls the given closure if condition == true.