pub struct ObserveProgress { /* private fields */ }
Expand description
An observe result. Awaiting this will return the current state.
Calling ObserveProgress::stream
will return a stream of updates, where
the first item is the current state and subsequent items are updates.
Implementations§
Source§impl ObserveProgress
impl ObserveProgress
pub async fn await_completion(self) -> RequestResult<Bitfield>
Trait Implementations§
Source§impl IntoFuture for ObserveProgress
impl IntoFuture for ObserveProgress
Source§type Output = Result<Bitfield, RequestError>
type Output = Result<Bitfield, RequestError>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <ObserveProgress as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <ObserveProgress 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 ObserveProgress
impl !RefUnwindSafe for ObserveProgress
impl Send for ObserveProgress
impl !Sync for ObserveProgress
impl Unpin for ObserveProgress
impl !UnwindSafe for ObserveProgress
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