pub struct RcuReadLease<T> { /* private fields */ }Expand description
Reader-held fractional permission split from an RcuLeaseAccumulator.
Implementations§
Source§impl<T> RcuReadLease<T>
impl<T> RcuReadLease<T>
Sourcepub proof fn tracked_borrow(tracked &self) -> tracked resource : &T
pub proof fn tracked_borrow(tracked &self) -> tracked resource : &T
ensures
*resource == self.resource(),Borrows the protected resource for the lifetime of this lease borrow.
Sourcepub proof fn lemma_fraction_bounded(tracked &self)
pub proof fn lemma_fraction_bounded(tracked &self)
ensures
0real < self.fraction() <= 1real,Establishes that every lease carries a positive rational fraction.
Auto Trait Implementations§
impl<T> Freeze for RcuReadLease<T>
impl<T> RefUnwindSafe for RcuReadLease<T>where
T: RefUnwindSafe,
impl<T> Send for RcuReadLease<T>
impl<T> Sync for RcuReadLease<T>
impl<T> Unpin for RcuReadLease<T>where
T: Unpin,
impl<T> UnsafeUnpin for RcuReadLease<T>
impl<T> UnwindSafe for RcuReadLease<T>where
T: UnwindSafe,
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