pub struct LinuxNamespaceTombstone { /* private fields */ }Expand description
Durable local deletion marker retained until remote mutation reconciliation completes.
Implementations§
Source§impl LinuxNamespaceTombstone
impl LinuxNamespaceTombstone
Sourcepub fn new(
key: CloudItemKey,
inode_generation: LinuxInodeGeneration,
parent_key: CloudItemKey,
name: impl Into<String>,
kind: LinuxNodeKind,
mutation_intent: MutationIntent,
) -> Result<Self>
pub fn new( key: CloudItemKey, inode_generation: LinuxInodeGeneration, parent_key: CloudItemKey, name: impl Into<String>, kind: LinuxNodeKind, mutation_intent: MutationIntent, ) -> Result<Self>
Creates a tombstone from the exact removed namespace facts.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub const fn inode_generation(&self) -> LinuxInodeGeneration
pub const fn inode_generation(&self) -> LinuxInodeGeneration
Returns the removed inode generation used to reject substituted tombstones.
Sourcepub const fn parent_key(&self) -> &CloudItemKey
pub const fn parent_key(&self) -> &CloudItemKey
Returns the exact former parent identity.
Sourcepub const fn kind(&self) -> LinuxNodeKind
pub const fn kind(&self) -> LinuxNodeKind
Returns whether the removed entry was a regular file or directory.
Sourcepub const fn mutation_intent(&self) -> &MutationIntent
pub const fn mutation_intent(&self) -> &MutationIntent
Returns the durable delete intent.
Trait Implementations§
Source§impl Clone for LinuxNamespaceTombstone
impl Clone for LinuxNamespaceTombstone
Source§fn clone(&self) -> LinuxNamespaceTombstone
fn clone(&self) -> LinuxNamespaceTombstone
Returns a duplicate of the value. Read more
1.0.0 · 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 LinuxNamespaceTombstone
impl Debug for LinuxNamespaceTombstone
Source§impl PartialEq for LinuxNamespaceTombstone
impl PartialEq for LinuxNamespaceTombstone
impl Eq for LinuxNamespaceTombstone
impl StructuralPartialEq for LinuxNamespaceTombstone
Auto Trait Implementations§
impl Freeze for LinuxNamespaceTombstone
impl RefUnwindSafe for LinuxNamespaceTombstone
impl Send for LinuxNamespaceTombstone
impl Sync for LinuxNamespaceTombstone
impl Unpin for LinuxNamespaceTombstone
impl UnwindSafe for LinuxNamespaceTombstone
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