pub struct Move { /* private fields */ }Expand description
A move operation definition
This is a similar to mount --move and allows to atomically move mount
point from one place to another
Implementations§
Source§impl Move
impl Move
Sourcepub fn new<A: AsRef<Path>, B: AsRef<Path>>(source: A, target: B) -> Move
pub fn new<A: AsRef<Path>, B: AsRef<Path>>(source: A, target: B) -> Move
Create a new Move operation
Sourcepub fn bare_move_mountpoint(self) -> Result<(), OSError>
pub fn bare_move_mountpoint(self) -> Result<(), OSError>
Execute a move-mountpoint operation
Sourcepub fn move_mountpoint(self) -> Result<(), Error>
pub fn move_mountpoint(self) -> Result<(), Error>
Execute a move mountpoint operation and explain the error immediately
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Move
impl RefUnwindSafe for Move
impl Send for Move
impl Sync for Move
impl Unpin for Move
impl UnwindSafe for Move
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