pub struct CacheIoTicket<Output> {
pub key: CacheIoOperationKey,
/* private fields */
}Expand description
Exact completion ownership for one coalesced cache I/O operation.
Fields§
§key: CacheIoOperationKeyExact logical operation identity.
Implementations§
Source§impl<Output: Clone> CacheIoTicket<Output>
impl<Output: Clone> CacheIoTicket<Output>
Sourcepub fn wait(&self) -> Result<Output, CacheIoWorkerError>
pub fn wait(&self) -> Result<Output, CacheIoWorkerError>
Waits for the logical output or cancellation.
Sourcepub fn wait_for_task_resources(&self) -> Result<(), CacheIoWorkerError>
pub fn wait_for_task_resources(&self) -> Result<(), CacheIoWorkerError>
Waits until all backend task inputs and retained resources are dropped.
Returns whether two tickets join the same exact completion owner.
Trait Implementations§
Source§impl<Output> Clone for CacheIoTicket<Output>
impl<Output> Clone for CacheIoTicket<Output>
Auto Trait Implementations§
impl<Output> Freeze for CacheIoTicket<Output>
impl<Output> RefUnwindSafe for CacheIoTicket<Output>where
Arc<CacheIoCompletion<Output>>: RefUnwindSafe,
Arc<CacheIoWorkerShared<Output>>: RefUnwindSafe,
impl<Output> Send for CacheIoTicket<Output>
impl<Output> Sync for CacheIoTicket<Output>
impl<Output> Unpin for CacheIoTicket<Output>
impl<Output> UnsafeUnpin for CacheIoTicket<Output>
impl<Output> UnwindSafe for CacheIoTicket<Output>
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