pub struct CompletionTracker { /* private fields */ }Implementations§
Source§impl CompletionTracker
impl CompletionTracker
pub fn new(group: Arc<GroupProgress>) -> Self
pub fn register_new_file( &self, updater: Arc<ItemProgressUpdater>, n_bytes: Option<u64>, ) -> CompletionTrackerFileId
pub fn increment_file_size( &self, file_id: CompletionTrackerFileId, size_increment: u64, )
pub fn register_new_xorb(&self, xorb_hash: MerkleHash, xorb_size: u64) -> bool
pub fn register_dependencies(&self, dependencies: &[FileXorbDependency])
pub fn register_xorb_upload_completion(&self, xorb_hash: MerkleHash)
pub fn register_xorb_upload_progress( &self, xorb_hash: MerkleHash, new_byte_progress: u64, )
pub fn register_xorb_upload_progress_background( self: Arc<Self>, xorb_hash: MerkleHash, new_byte_progress: u64, )
pub fn status(&self) -> (u64, u64)
pub fn is_complete(&self) -> bool
pub fn assert_complete(&self)
Auto Trait Implementations§
impl !Freeze for CompletionTracker
impl RefUnwindSafe for CompletionTracker
impl Send for CompletionTracker
impl Sync for CompletionTracker
impl Unpin for CompletionTracker
impl UnsafeUnpin for CompletionTracker
impl UnwindSafe for CompletionTracker
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
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more