pub struct ScrubLimitCommand {
pub all: bool,
pub devid: Option<u64>,
pub limit: Option<u64>,
pub path: PathBuf,
}Expand description
Show or set the per-device scrub throughput limit
Without options, shows the current limit for each device. Use -l with either -a or -d to set a limit. Pass 0 to -l to remove a limit.
Fields§
§all: boolApply the limit to all devices
devid: Option<u64>Select a single device by devid
limit: Option<u64>Set the throughput limit (e.g. 100m, 1g); 0 removes the limit
path: PathBufPath to a mounted btrfs filesystem
Trait Implementations§
Source§impl Args for ScrubLimitCommand
impl Args for ScrubLimitCommand
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 ScrubLimitCommand
impl CommandFactory for ScrubLimitCommand
Source§impl Debug for ScrubLimitCommand
impl Debug for ScrubLimitCommand
Source§impl FromArgMatches for ScrubLimitCommand
impl FromArgMatches for ScrubLimitCommand
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 ScrubLimitCommand
impl Parser for ScrubLimitCommand
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 ScrubLimitCommand
impl RefUnwindSafe for ScrubLimitCommand
impl Send for ScrubLimitCommand
impl Sync for ScrubLimitCommand
impl Unpin for ScrubLimitCommand
impl UnsafeUnpin for ScrubLimitCommand
impl UnwindSafe for ScrubLimitCommand
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