pub struct AsyncCopyFixtureCase { /* private fields */ }Expand description
Provider-prepared asynchronous copy request used for cancellation probing.
§Examples
use qubit_fs::copy::CopyOptions;
use qubit_fs::path::Path;
use qubit_fs_testkit::AsyncCopyFixtureCase;
let source = Path::parse("/source")?;
let target = Path::parse("/target")?;
let case = AsyncCopyFixtureCase::new(source, target, CopyOptions::file());
assert_eq!(case.target(), &Path::parse("/target")?);Implementations§
Source§impl AsyncCopyFixtureCase
impl AsyncCopyFixtureCase
Sourcepub fn new(source: Path, target: Path, options: CopyOptions) -> Self
pub fn new(source: Path, target: Path, options: CopyOptions) -> Self
Sourcepub const fn options(&self) -> &CopyOptions
pub const fn options(&self) -> &CopyOptions
Sourcepub fn into_parts(self) -> (Path, Path, CopyOptions)
pub fn into_parts(self) -> (Path, Path, CopyOptions)
Decomposes the prepared request into owned parts.
§Returns
The source path, destination path, and copy options in that order.
Trait Implementations§
Source§impl Clone for AsyncCopyFixtureCase
impl Clone for AsyncCopyFixtureCase
Auto Trait Implementations§
impl Forget for AsyncCopyFixtureCase
impl Freeze for AsyncCopyFixtureCase
impl Move for AsyncCopyFixtureCase
impl RefUnwindSafe for AsyncCopyFixtureCase
impl Send for AsyncCopyFixtureCase
impl Sync for AsyncCopyFixtureCase
impl Unpin for AsyncCopyFixtureCase
impl UnsafeUnpin for AsyncCopyFixtureCase
impl UnwindSafe for AsyncCopyFixtureCase
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