pub struct InFlight { /* private fields */ }Expand description
The stored objects this process is transferring one way. The worker transferring them adds each attempt as it starts and removes it as it ends, saying how, cancelled included. Clones share it.
Implementations§
Source§impl InFlight
impl InFlight
Sourcepub fn start(
&self,
device: DeviceId,
object: ObjectId,
files: Vec<FileId>,
progress: TransferProgress,
) -> Transferring
pub fn start( &self, device: DeviceId, object: ObjectId, files: Vec<FileId>, progress: TransferProgress, ) -> Transferring
Mark the stored object, which device uploaded, as in flight for
files until the returned guard drops, as far as progress says.
Sourcepub fn subscribe(&self) -> TransferWatch
pub fn subscribe(&self) -> TransferWatch
Hear how far each file in flight has got: all of them first, then each change, and how each file ended, until the store closes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InFlight
impl !RefUnwindSafe for InFlight
impl Send for InFlight
impl Sync for InFlight
impl Unpin for InFlight
impl UnsafeUnpin for InFlight
impl !UnwindSafe for InFlight
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