pub struct ManagerId(pub u64);Expand description
Stable, process-unique identifier for a BlockManager’s underlying
BlockStore.
Generated by an atomic counter at BlockStore construction; never
reused. Two LifecyclePinRefs with the same ManagerId come from
the same physical pool; together with BlockId this disambiguates
a slot’s logical address after policy-type erasure (downstream callers
that hold Arc<dyn LifecyclePin> lose the manager type parameter but
keep the runtime address).
The reserved value ManagerId::NULL is never assigned to a real
store — callers may use it as a null/test sentinel.
Tuple Fields§
§0: u64Implementations§
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for ManagerId
impl<'__de, __Context> BorrowDecode<'__de, __Context> for ManagerId
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
impl Copy for ManagerId
Source§impl<'de> Deserialize<'de> for ManagerId
impl<'de> Deserialize<'de> for ManagerId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ManagerId
impl StructuralPartialEq for ManagerId
Auto Trait Implementations§
impl Freeze for ManagerId
impl RefUnwindSafe for ManagerId
impl Send for ManagerId
impl Sync for ManagerId
impl Unpin for ManagerId
impl UnsafeUnpin for ManagerId
impl UnwindSafe for ManagerId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.