pub struct UpdateAttributesOptions {
pub set: BTreeMap<AttributeKey, AttributeValue>,
pub remove: Vec<AttributeKey>,
pub commit: CommitOptions,
pub expected_inode_id: Option<InodeId>,
pub expected_attributes_revision_no: Option<AttributeRevisionNo>,
}Expand description
Options for writing and removing an inode’s attributes.
Fields§
§set: BTreeMap<AttributeKey, AttributeValue>Attributes to write. Each key replaces whatever the inode holds under it; keys the inode holds and this map does not name are left alone.
remove: Vec<AttributeKey>Keys to remove.
commit: CommitOptionsActor, commit ID, and message.
expected_inode_id: Option<InodeId>When set, the update applies only while the path still resolves to this inode, so a raced rebinding fails instead of writing attributes onto the wrong inode.
expected_attributes_revision_no: Option<AttributeRevisionNo>When set, the update applies only while the inode’s attribute revision is still this one. Every update carries its own revision guard either way, so a concurrent update never merges silently.
Implementations§
Trait Implementations§
Source§impl Clone for UpdateAttributesOptions
impl Clone for UpdateAttributesOptions
Source§fn clone(&self) -> UpdateAttributesOptions
fn clone(&self) -> UpdateAttributesOptions
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 UpdateAttributesOptions
impl Debug for UpdateAttributesOptions
impl Eq for UpdateAttributesOptions
Source§impl PartialEq for UpdateAttributesOptions
impl PartialEq for UpdateAttributesOptions
impl StructuralPartialEq for UpdateAttributesOptions
Auto Trait Implementations§
impl Freeze for UpdateAttributesOptions
impl RefUnwindSafe for UpdateAttributesOptions
impl Send for UpdateAttributesOptions
impl Sync for UpdateAttributesOptions
impl Unpin for UpdateAttributesOptions
impl UnsafeUnpin for UpdateAttributesOptions
impl UnwindSafe for UpdateAttributesOptions
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