Struct ReadGuard
pub struct ReadGuard(/* private fields */);Expand description
Checks that reads of a replicated engine are served under a lease (see
ReplicaNode::lease_valid).
Implementations§
§impl ReadGuard
impl ReadGuard
pub fn lease_valid(&self) -> bool
pub async fn confirm_reads(&self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Forget for ReadGuard
impl Freeze for ReadGuard
impl Move for ReadGuard
impl RefUnwindSafe for ReadGuard
impl Send for ReadGuard
impl Sync for ReadGuard
impl Unpin for ReadGuard
impl UnsafeUnpin for ReadGuard
impl UnwindSafe for ReadGuard
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