pub struct RcuRegisteredReadLease<K, T> { /* private fields */ }Expand description
Reader-held lease registered under an allocation key and a unique lease ID.
The private lease_id names the matching RcuActiveReadLeaseRecord in
the authoritative RcuReadLeaseRegistry. Returning this lease must
consume that exact record, so it cannot be returned to another allocation
that happens to store an equal resource.
Implementations§
Source§impl<K, T> RcuRegisteredReadLease<K, T>
impl<K, T> RcuRegisteredReadLease<K, T>
Sourcepub closed spec fn accumulator_id(self) -> Loc
pub closed spec fn accumulator_id(self) -> Loc
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 while this registered lease remains live.
Auto Trait Implementations§
impl<K, T> Freeze for RcuRegisteredReadLease<K, T>where
K: Freeze,
impl<K, T> RefUnwindSafe for RcuRegisteredReadLease<K, T>where
K: RefUnwindSafe,
T: RefUnwindSafe,
impl<K, T> Send for RcuRegisteredReadLease<K, T>
impl<K, T> Sync for RcuRegisteredReadLease<K, T>
impl<K, T> Unpin for RcuRegisteredReadLease<K, T>
impl<K, T> UnsafeUnpin for RcuRegisteredReadLease<K, T>where
K: UnsafeUnpin,
impl<K, T> UnwindSafe for RcuRegisteredReadLease<K, T>where
K: UnwindSafe,
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