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 UnsafeUnpin 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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