pub enum FileMutation {
ReplaceRecord {
record: FileRecord,
},
SetMetadata {
metadata: ObjectId,
},
Write {
offset: u64,
length: u64,
content: ObjectId,
content_offset: u64,
},
ValidateRegular,
Resize {
logical_bytes: u64,
},
ZeroRange {
offset: u64,
length: u64,
allocated: bool,
extend: bool,
},
Preallocate {
offset: u64,
length: u64,
keep_size: bool,
},
}Expand description
One ordered mutation of an existing path-independent file record.
Variants§
ReplaceRecord
Replaces one authenticated file record without changing its live bindings. The current identity and link count remain authoritative.
Fields
§
record: FileRecordComplete replacement record for the same file identity and kind.
SetMetadata
Replaces the complete canonical metadata object.
Write
Replaces one logical byte interval with authenticated content.
Fields
ValidateRegular
Validates that the existing identity is a regular file without changing it.
Resize
Changes logical file length while preserving sparse semantics.
ZeroRange
Replaces a range with a hole or physically allocated zeros.
Fields
Preallocate
Allocates sparse holes without replacing existing content.
Trait Implementations§
Source§impl Clone for FileMutation
impl Clone for FileMutation
Source§impl Debug for FileMutation
impl Debug for FileMutation
impl Eq for FileMutation
Source§impl PartialEq for FileMutation
impl PartialEq for FileMutation
impl StructuralPartialEq for FileMutation
Auto Trait Implementations§
impl Freeze for FileMutation
impl RefUnwindSafe for FileMutation
impl Send for FileMutation
impl Sync for FileMutation
impl Unpin for FileMutation
impl UnsafeUnpin for FileMutation
impl UnwindSafe for FileMutation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request