pub struct HydrationWaiter { /* private fields */ }Expand description
One registered hydration waiter that resolves to exactly its requested logical bytes.
Implementations§
Source§impl HydrationWaiter
impl HydrationWaiter
Sourcepub fn cancellation_handle(&self) -> HydrationCancellationHandle
pub fn cancellation_handle(&self) -> HydrationCancellationHandle
Returns an independently cloneable cancellation handle for this waiter.
Sourcepub async fn wait(self) -> HydrationResult<ContentReadResponse>
pub async fn wait(self) -> HydrationResult<ContentReadResponse>
Drives shared backend work and returns only the exact logical bytes requested by this waiter.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HydrationWaiter
impl !RefUnwindSafe for HydrationWaiter
impl Send for HydrationWaiter
impl Sync for HydrationWaiter
impl Unpin for HydrationWaiter
impl !UnwindSafe for HydrationWaiter
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