pub struct OneShotCopier { /* private fields */ }Expand description
OneShotCopier drives a single asynchronous copy step.
Implementations§
Source§impl OneShotCopier
impl OneShotCopier
Sourcepub fn new(
fut: impl Future<Output = Result<Metadata>> + MaybeSend + 'static,
) -> Self
pub fn new( fut: impl Future<Output = Result<Metadata>> + MaybeSend + 'static, ) -> Self
Create a new one-shot copier.
Trait Implementations§
Source§impl Copy for OneShotCopier
impl Copy for OneShotCopier
impl Send for OneShotCopier
§Safety
On wasm targets, futures are local but still only polled through &mut self.
impl Sync for OneShotCopier
§Safety
OneShotCopier is only accessed by &mut self.
Auto Trait Implementations§
impl Freeze for OneShotCopier
impl !RefUnwindSafe for OneShotCopier
impl Unpin for OneShotCopier
impl UnsafeUnpin for OneShotCopier
impl !UnwindSafe for OneShotCopier
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