pub struct SecretPoolSlotId {
pub index: usize,
pub generation: usize,
}Expand description
Stable identity of one live allocation from a fixed-size secret pool.
The slot index may be reused after a handle drops. The generation changes on each successful claim, so retained identifiers can distinguish later occupants of the same slot. This is diagnostic identity only; it does not grant access to slot storage.
Fields§
§index: usizeSlot index inside the parent pool.
generation: usizeNon-zero allocation generation assigned after the slot is claimed.
Trait Implementations§
Source§impl Clone for SecretPoolSlotId
impl Clone for SecretPoolSlotId
impl Copy for SecretPoolSlotId
Source§impl Debug for SecretPoolSlotId
impl Debug for SecretPoolSlotId
impl Eq for SecretPoolSlotId
Source§impl Hash for SecretPoolSlotId
impl Hash for SecretPoolSlotId
Source§impl PartialEq for SecretPoolSlotId
impl PartialEq for SecretPoolSlotId
impl StructuralPartialEq for SecretPoolSlotId
Auto Trait Implementations§
impl Forget for SecretPoolSlotId
impl Freeze for SecretPoolSlotId
impl Move for SecretPoolSlotId
impl RefUnwindSafe for SecretPoolSlotId
impl Send for SecretPoolSlotId
impl Sync for SecretPoolSlotId
impl Unpin for SecretPoolSlotId
impl UnsafeUnpin for SecretPoolSlotId
impl UnwindSafe for SecretPoolSlotId
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