pub struct RepackContext { /* private fields */ }Expand description
Cooperative controls supplied to a storage-specific operation.
Implementations§
Source§impl RepackContext
impl RepackContext
Sourcepub fn checkpoint(&self, io_bytes: u64) -> Result<(), RepackError>
pub fn checkpoint(&self, io_bytes: u64) -> Result<(), RepackError>
Check cancellation, yield to foreground load, and rate-limit I/O.
Sourcepub fn cancellation_token(&self) -> &CancellationToken
pub fn cancellation_token(&self) -> &CancellationToken
The cancellation token observed by this operation.
Auto Trait Implementations§
impl !Freeze for RepackContext
impl !RefUnwindSafe for RepackContext
impl !UnwindSafe for RepackContext
impl Send for RepackContext
impl Sync for RepackContext
impl Unpin for RepackContext
impl UnsafeUnpin for RepackContext
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