pub struct LocalSerializableLeases(/* private fields */);Expand description
Liveness for an exclusively owned database or one browser/in-memory owner. File-backed multiprocess providers must use native leases instead. The entries and their capacity share the owner’s allowance; live handles retain the registry through their lease payload.
Implementations§
Source§impl LocalSerializableLeases
impl LocalSerializableLeases
pub fn new(memory: &MemoryBudget) -> Self
pub fn retain( self: &Arc<Self>, id: SerializableTransactionId, control: &StorageReadControl, ) -> VersionResult<SerializableParticipant>
Sourcepub fn retain_with<T: Send + Sync + 'static>(
self: &Arc<Self>,
id: SerializableTransactionId,
retained: T,
control: &StorageReadControl,
) -> VersionResult<SerializableParticipant>
pub fn retain_with<T: Send + Sync + 'static>( self: &Arc<Self>, id: SerializableTransactionId, retained: T, control: &StorageReadControl, ) -> VersionResult<SerializableParticipant>
Retain an additional physical/coordinator owner with the original participant, charging the complete lease payload before allocation. Destruction must not reenter SSI admission or resolve a logical transaction. Admission operations must retain the physical owner separately so its final close cannot run while their gate is held.
pub fn is_alive(&self, id: SerializableTransactionId) -> bool
pub fn reclaim(&self)
Auto Trait Implementations§
impl !Freeze for LocalSerializableLeases
impl !RefUnwindSafe for LocalSerializableLeases
impl !UnwindSafe for LocalSerializableLeases
impl Send for LocalSerializableLeases
impl Sync for LocalSerializableLeases
impl Unpin for LocalSerializableLeases
impl UnsafeUnpin for LocalSerializableLeases
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