pub struct ExportProgress { /* private fields */ }
Expand description
A progress handle for an export operation.
Internally this is a stream of ExportProgress
items. Working with this
stream directly can be inconvenient, so this struct provides some convenience
methods to work with the result.
To get the underlying stream, use the ExportProgress::stream
method.
It also implements IntoFuture
, so you can await it to get the size of the
exported blob.
Implementations§
Source§impl ExportProgress
impl ExportProgress
pub async fn stream(self) -> impl Stream<Item = ExportProgressItem>
pub async fn finish(self) -> RequestResult<u64>
Trait Implementations§
Source§impl IntoFuture for ExportProgress
impl IntoFuture for ExportProgress
Source§type Output = Result<u64, RequestError>
type Output = Result<u64, RequestError>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <ExportProgress as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <ExportProgress as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl Freeze for ExportProgress
impl !RefUnwindSafe for ExportProgress
impl Send for ExportProgress
impl !Sync for ExportProgress
impl Unpin for ExportProgress
impl !UnwindSafe for ExportProgress
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