Struct ssstar::CreateArchiveJob
source · pub struct CreateArchiveJob { /* private fields */ }Expand description
A job which will create a new tar archive from object store inputs.
Implementations§
source§impl CreateArchiveJob
impl CreateArchiveJob
sourcepub fn total_bytes(&self) -> u64
pub fn total_bytes(&self) -> u64
The total number of bytes to read from all objects
sourcepub fn total_objects(&self) -> usize
pub fn total_objects(&self) -> usize
The total number of objects included in this archive
sourcepub async fn run_without_progress(
self,
abort: impl Future<Output = ()>
) -> Result<()>
pub async fn run_without_progress( self, abort: impl Future<Output = ()> ) -> Result<()>
Alternative to Self::run which doesn’t require a [ProgressCallback] implementation,
for callers that do not care about progress information.
sourcepub async fn run<Abort, Progress>(
self,
_abort: Abort,
progress: Progress
) -> Result<()>where
Abort: Future<Output = ()>,
Progress: CreateProgressCallback + 'static,
pub async fn run<Abort, Progress>( self, _abort: Abort, progress: Progress ) -> Result<()>where Abort: Future<Output = ()>, Progress: CreateProgressCallback + 'static,
Run the job, returning only when the job has run to completion (or failed)
If the abort future is completed, it’s a signal that the job should be aborted.
Existing transfers will be abandoned and queued transfers will be dropped, then this method
returns an abort error.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CreateArchiveJob
impl Send for CreateArchiveJob
impl !Sync for CreateArchiveJob
impl Unpin for CreateArchiveJob
impl !UnwindSafe for CreateArchiveJob
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