pub struct RenameOptions {
pub overwrite: bool,
pub atomic: bool,
pub native: bool,
}
Expand description
Represents options to provide when renaming a file or directory
Fields§
§overwrite: bool
Overwrite the destination if it exists, otherwise fail
atomic: bool
Request atomic rename operation
native: bool
Request native system calls
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RenameOptions
impl Debug for RenameOptions
Source§impl From<RenameOptions> for RenameFlags
impl From<RenameOptions> for RenameFlags
Source§fn from(opts: RenameOptions) -> Self
fn from(opts: RenameOptions) -> Self
Converts to this type from the input type.
Source§impl Hash for RenameOptions
impl Hash for RenameOptions
Source§impl PartialEq for RenameOptions
impl PartialEq for RenameOptions
impl Copy for RenameOptions
impl Eq for RenameOptions
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 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