pub enum StorageKeyState {
Active,
Retiring,
Retired,
}Expand description
Lifecycle position of one storage-key epoch.
Exactly one epoch is Active — the one new writes use. Older epochs stay
Retiring while live objects still carry them, and become Retired only
once the mark pass counts none, at which point their key material may be
destroyed.
Variants§
Active
New writes use this epoch.
Retiring
Readable, still referenced by live objects, no longer written.
Retired
Readable while material lasts; no live object carries it.
Trait Implementations§
Source§impl Clone for StorageKeyState
impl Clone for StorageKeyState
Source§fn clone(&self) -> StorageKeyState
fn clone(&self) -> StorageKeyState
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 moreimpl Copy for StorageKeyState
Source§impl Debug for StorageKeyState
impl Debug for StorageKeyState
Source§impl Default for StorageKeyState
impl Default for StorageKeyState
Source§fn default() -> StorageKeyState
fn default() -> StorageKeyState
Returns the “default value” for a type. Read more
Source§impl Display for StorageKeyState
impl Display for StorageKeyState
impl Eq for StorageKeyState
Source§impl PartialEq for StorageKeyState
impl PartialEq for StorageKeyState
impl StructuralPartialEq for StorageKeyState
Auto Trait Implementations§
impl Freeze for StorageKeyState
impl RefUnwindSafe for StorageKeyState
impl Send for StorageKeyState
impl Sync for StorageKeyState
impl Unpin for StorageKeyState
impl UnsafeUnpin for StorageKeyState
impl UnwindSafe for StorageKeyState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request