pub struct Operation { /* private fields */ }Expand description
A running or ended clone_dir or remove_dir. It lives on the connection that started it.
Implementations§
Source§impl Operation
impl Operation
Sourcepub fn wait(&self, timeout: Duration) -> Result<OpResult>
pub fn wait(&self, timeout: Duration) -> Result<OpResult>
Waits up to timeout for the end of the operation. Ok means the server reported the end,
and the result has the totals and the failures. Error::OperationStateUnknown means notices
were lost. An Error::Io of kind ConnectionAborted means the connection dropped or the
client closed. A timeout is an Error::Io of kind TimedOut. Calling again is allowed.
Auto Trait Implementations§
impl !RefUnwindSafe for Operation
impl !UnwindSafe for Operation
impl Freeze for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
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