pub struct FileOperationOptions {
pub create_parents: bool,
pub overwrite: bool,
pub permissions: Option<u32>,
pub preserve_timestamps: bool,
pub calculate_checksum: bool,
pub timeout: Option<Duration>,
pub atomic: bool,
}
Expand description
File operation options
Fields§
§create_parents: bool
Whether to create parent directories
overwrite: bool
Whether to overwrite existing files
permissions: Option<u32>
File permissions to set
preserve_timestamps: bool
Whether to preserve timestamps
calculate_checksum: bool
Whether to calculate checksums
timeout: Option<Duration>
Operation timeout
atomic: bool
Whether to use atomic operations
Trait Implementations§
Source§impl Clone for FileOperationOptions
impl Clone for FileOperationOptions
Source§fn clone(&self) -> FileOperationOptions
fn clone(&self) -> FileOperationOptions
Returns a copy 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 FileOperationOptions
impl Debug for FileOperationOptions
Auto Trait Implementations§
impl Freeze for FileOperationOptions
impl RefUnwindSafe for FileOperationOptions
impl Send for FileOperationOptions
impl Sync for FileOperationOptions
impl Unpin for FileOperationOptions
impl UnwindSafe for FileOperationOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.