pub enum CheckpointOwner {
User {
name: String,
expires_at_ms: Option<u64>,
},
Fork {
target_namespace_id: NamespaceId,
},
Snapshot {
name: String,
expires_at_ms: u64,
},
}Expand description
Durable owner and expiry policy of a checkpoint record.
Variants§
User
An operator-created pin, deleted explicitly by checkpoint id or by its declared expiry. The name is a label, not a key: several records may carry the same name over different bases.
Fields
Fork
Keeps the source manifest and its runs readable by the target.
Fields
§
target_namespace_id: NamespaceIdFork namespace whose continued existence keeps the source basis pinned.
Snapshot
An application-created read view with a required expiry.
Implementations§
Source§impl CheckpointOwner
impl CheckpointOwner
Sourcepub fn expires_at_ms(&self) -> Option<u64>
pub fn expires_at_ms(&self) -> Option<u64>
When garbage collection may release this record without asking its owner.
Trait Implementations§
Source§impl Clone for CheckpointOwner
impl Clone for CheckpointOwner
Source§impl Debug for CheckpointOwner
impl Debug for CheckpointOwner
Source§impl<'de> Deserialize<'de> for CheckpointOwner
impl<'de> Deserialize<'de> for CheckpointOwner
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 CheckpointOwner
Source§impl PartialEq for CheckpointOwner
impl PartialEq for CheckpointOwner
Source§impl Serialize for CheckpointOwner
impl Serialize for CheckpointOwner
impl StructuralPartialEq for CheckpointOwner
Auto Trait Implementations§
impl Freeze for CheckpointOwner
impl RefUnwindSafe for CheckpointOwner
impl Send for CheckpointOwner
impl Sync for CheckpointOwner
impl Unpin for CheckpointOwner
impl UnsafeUnpin for CheckpointOwner
impl UnwindSafe for CheckpointOwner
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