pub struct DeviceAddCommand {
pub force: bool,
pub nodiscard: bool,
pub enqueue: bool,
pub devices: Vec<PathBuf>,
pub target: PathBuf,
}Expand description
Add one or more devices to a mounted filesystem
The device must not be mounted and should not contain a filesystem or other data. The operation requires CAP_SYS_ADMIN.
Fields§
§force: boolForce overwrite of an existing filesystem on the device
nodiscard: boolDo not perform whole device TRIM (discard) before adding
enqueue: boolWait if there’s another exclusive operation running, instead of returning an error
devices: Vec<PathBuf>One or more block devices to add
target: PathBufMount point of the target filesystem
Trait Implementations§
Source§impl Args for DeviceAddCommand
impl Args for DeviceAddCommand
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 DeviceAddCommand
impl CommandFactory for DeviceAddCommand
Source§impl Debug for DeviceAddCommand
impl Debug for DeviceAddCommand
Source§impl FromArgMatches for DeviceAddCommand
impl FromArgMatches for DeviceAddCommand
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 DeviceAddCommand
impl Parser for DeviceAddCommand
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)
Source§impl Runnable for DeviceAddCommand
impl Runnable for DeviceAddCommand
Auto Trait Implementations§
impl Freeze for DeviceAddCommand
impl RefUnwindSafe for DeviceAddCommand
impl Send for DeviceAddCommand
impl Sync for DeviceAddCommand
impl Unpin for DeviceAddCommand
impl UnsafeUnpin for DeviceAddCommand
impl UnwindSafe for DeviceAddCommand
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