pub enum CheckpointOwner {
User {
name: String,
},
Fork {
target_namespace_id: NamespaceId,
},
}Expand description
Durable owner of a checkpoint record: the party whose lifecycle decides when the pin is released.
Variants§
User
An operator-created pin, released 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.
Fork
A fork target keeping its source basis alive. Released once the target namespace is terminally deleted, or once the attempt’s lease expires with no target head to show for it. A live target keeps the record whatever the lease says.
Fields
§
target_namespace_id: NamespaceIdFork namespace whose continued existence keeps the source basis pinned.
Trait Implementations§
Source§impl Clone for CheckpointOwner
impl Clone for CheckpointOwner
Source§fn clone(&self) -> CheckpointOwner
fn clone(&self) -> CheckpointOwner
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 moreSource§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