pub type FutureCopy<F> = OperatorFuture<(CopyOptions, String), (), F>;
Expand description
Future that generated by Operator::copy_with
.
Users can add more options by public functions provided by this struct.
Aliased Type§
struct FutureCopy<F> { /* private fields */ }
Implementations§
Source§impl<F: Future<Output = Result<()>>> FutureCopy<F>
impl<F: Future<Output = Result<()>>> FutureCopy<F>
Sourcepub fn if_not_exists(self, v: bool) -> Self
pub fn if_not_exists(self, v: bool) -> Self
Sets the condition that copy operation will succeed only if target does not exist.
Refer to options::CopyOptions::if_not_exists
for more details.
§Example
let _ = op
.copy_with("source/path", "target/path")
.if_not_exists(true)
.await?;