pub enum NamespaceStatus {
Active {},
Deleted {
reclaim_after_ms: Option<u64>,
},
}Expand description
Terminal namespace status.
A namespace is either active or permanently deleted. Missing and unknown status values fail decoding.
Variants§
Active
The namespace serves reads and accepts commits.
The braces make serde reject a stray field; a unit variant would silently accept and discard one.
Deleted
Terminal: the namespace’s history has ended. Reads, commits, forks, and re-creation of the same id are all refused.
Implementations§
Source§impl NamespaceStatus
impl NamespaceStatus
Sourcepub const fn is_deleted(&self) -> bool
pub const fn is_deleted(&self) -> bool
Returns whether the namespace is permanently deleted.
Sourcepub const fn reclaim_after_ms(&self) -> Option<u64>
pub const fn reclaim_after_ms(&self) -> Option<u64>
Returns the irrevocable collection deadline, if retirement is established.
Trait Implementations§
Source§impl Clone for NamespaceStatus
impl Clone for NamespaceStatus
impl Copy for NamespaceStatus
Source§impl Debug for NamespaceStatus
impl Debug for NamespaceStatus
Source§impl<'de> Deserialize<'de> for NamespaceStatus
impl<'de> Deserialize<'de> for NamespaceStatus
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 NamespaceStatus
Source§impl PartialEq for NamespaceStatus
impl PartialEq for NamespaceStatus
Source§impl Serialize for NamespaceStatus
impl Serialize for NamespaceStatus
impl StructuralPartialEq for NamespaceStatus
Auto Trait Implementations§
impl Freeze for NamespaceStatus
impl RefUnwindSafe for NamespaceStatus
impl Send for NamespaceStatus
impl Sync for NamespaceStatus
impl Unpin for NamespaceStatus
impl UnsafeUnpin for NamespaceStatus
impl UnwindSafe for NamespaceStatus
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