pub struct RenameOptions {
pub no_replace: bool,
}Expand description
Optional flags for PlatformShell::rename_entry_with_options.
Mirrors the subset of Linux renameat2(2) flags the mount
supports; non-applicable flags on non-Linux adapters can be left
as their defaults.
Fields§
§no_replace: boolRENAME_NOREPLACE: refuse the rename with MountError::AlreadyExists
when the destination already resolves. Must be enforced inside
the same critical section as the rename so a concurrent writer
cannot install the destination between the check and the
mutation.
Trait Implementations§
Source§impl Clone for RenameOptions
impl Clone for RenameOptions
Source§fn clone(&self) -> RenameOptions
fn clone(&self) -> RenameOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RenameOptions
Source§impl Debug for RenameOptions
impl Debug for RenameOptions
Source§impl Default for RenameOptions
impl Default for RenameOptions
Source§fn default() -> RenameOptions
fn default() -> RenameOptions
Returns the “default value” for a type. Read more
impl Eq for RenameOptions
Source§impl PartialEq for RenameOptions
impl PartialEq for RenameOptions
Source§fn eq(&self, other: &RenameOptions) -> bool
fn eq(&self, other: &RenameOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RenameOptions
Auto Trait Implementations§
impl Freeze for RenameOptions
impl RefUnwindSafe for RenameOptions
impl Send for RenameOptions
impl Sync for RenameOptions
impl Unpin for RenameOptions
impl UnsafeUnpin for RenameOptions
impl UnwindSafe for RenameOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.