pub struct QueryCancellation<'a> { /* private fields */ }Expand description
Cheap cooperative stop check shared by one query and its snapshot lease.
Implementations§
Source§impl<'a> QueryCancellation<'a>
impl<'a> QueryCancellation<'a>
Sourcepub const fn new(control: &'a QueryControl, lease: &'a SnapshotLease) -> Self
pub const fn new(control: &'a QueryControl, lease: &'a SnapshotLease) -> Self
Binds caller cancellation/deadline state to the admitted snapshot read.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for QueryCancellation<'a>
impl<'a> !UnwindSafe for QueryCancellation<'a>
impl<'a> Freeze for QueryCancellation<'a>
impl<'a> Send for QueryCancellation<'a>
impl<'a> Sync for QueryCancellation<'a>
impl<'a> Unpin for QueryCancellation<'a>
impl<'a> UnsafeUnpin for QueryCancellation<'a>
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