pub struct LifecyclePinRef(/* private fields */);Expand description
Cheap-to-clone strong reference to a registered slot’s lifecycle.
Each Clone is a single Arc::clone. Drop releases the keepalive;
when the last pin (and the last ImmutableBlock clone) are dropped,
the underlying slot transitions to Inactive and may be evicted.
Implementations§
Source§impl LifecyclePinRef
impl LifecyclePinRef
pub fn block_id(&self) -> BlockId
pub fn sequence_hash(&self) -> SequenceHash
pub fn manager_id(&self) -> ManagerId
pub fn registration_handle(&self) -> BlockRegistrationHandle
Trait Implementations§
Source§impl Clone for LifecyclePinRef
impl Clone for LifecyclePinRef
Source§fn clone(&self) -> LifecyclePinRef
fn clone(&self) -> LifecyclePinRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for LifecyclePinRef
impl !UnwindSafe for LifecyclePinRef
impl Freeze for LifecyclePinRef
impl Send for LifecyclePinRef
impl Sync for LifecyclePinRef
impl Unpin for LifecyclePinRef
impl UnsafeUnpin for LifecyclePinRef
Blanket Implementations§
impl<T> BlockMetadata for T
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