pub struct ReplaceStartCommand {
pub source: String,
pub target: PathBuf,
pub mount_point: PathBuf,
pub redundancy_only: bool,
pub force: bool,
pub no_background: bool,
pub enqueue: bool,
pub nodiscard: bool,
}Expand description
Replace a device in the filesystem.
The source device can be specified either as a path (e.g. /dev/sdb) or as a numeric device ID. The target device will be used to replace the source. The filesystem must be mounted at mount_point.
Fields§
§source: StringSource device path or devid to replace
target: PathBufTarget device that will replace the source
mount_point: PathBufMount point of the filesystem
redundancy_only: boolOnly read from srcdev if no other zero-defect mirror exists
force: boolForce using and overwriting targetdev even if it contains a valid btrfs filesystem
no_background: boolDo not background the replace operation; wait for it to finish
enqueue: boolWait if there’s another exclusive operation running, instead of returning an error
nodiscard: boolDo not perform whole device TRIM on the target device
Trait Implementations§
Source§impl Args for ReplaceStartCommand
impl Args for ReplaceStartCommand
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 ReplaceStartCommand
impl CommandFactory for ReplaceStartCommand
Source§impl Debug for ReplaceStartCommand
impl Debug for ReplaceStartCommand
Source§impl FromArgMatches for ReplaceStartCommand
impl FromArgMatches for ReplaceStartCommand
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 ReplaceStartCommand
impl Parser for ReplaceStartCommand
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 ReplaceStartCommand
impl Runnable for ReplaceStartCommand
Auto Trait Implementations§
impl Freeze for ReplaceStartCommand
impl RefUnwindSafe for ReplaceStartCommand
impl Send for ReplaceStartCommand
impl Sync for ReplaceStartCommand
impl Unpin for ReplaceStartCommand
impl UnsafeUnpin for ReplaceStartCommand
impl UnwindSafe for ReplaceStartCommand
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