pub enum MetadataCallbackMethod {
Show 14 variants
Resolve {
path: String,
},
ResolveParent {
path: String,
},
Lstat {
path: String,
},
ListDir {
ino: u64,
},
Create {
parent: u64,
name: String,
attrs: CreateInodeAttrs,
},
Link {
parent: u64,
name: String,
target: u64,
},
Remove {
parent: u64,
name: String,
},
Rename {
src_parent: u64,
src: String,
dst_parent: u64,
dst: String,
},
SetAttr {
ino: u64,
patch: InodePatch,
},
CommitWrite {
ino: u64,
edits: Vec<ChunkEdit>,
new_size: u64,
},
GetChunks {
ino: u64,
range: ChunkRange,
},
Snapshot {
root: u64,
},
Fork {
snap: SnapshotId,
},
Gc,
}Variants§
Resolve
ResolveParent
Lstat
ListDir
Create
Link
Remove
Rename
SetAttr
CommitWrite
GetChunks
Snapshot
Fork
Fields
§
snap: SnapshotIdGc
Trait Implementations§
Source§impl Clone for MetadataCallbackMethod
impl Clone for MetadataCallbackMethod
Source§fn clone(&self) -> MetadataCallbackMethod
fn clone(&self) -> MetadataCallbackMethod
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 MetadataCallbackMethod
impl Debug for MetadataCallbackMethod
Source§impl<'de> Deserialize<'de> for MetadataCallbackMethod
impl<'de> Deserialize<'de> for MetadataCallbackMethod
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
Auto Trait Implementations§
impl Freeze for MetadataCallbackMethod
impl RefUnwindSafe for MetadataCallbackMethod
impl Send for MetadataCallbackMethod
impl Sync for MetadataCallbackMethod
impl Unpin for MetadataCallbackMethod
impl UnsafeUnpin for MetadataCallbackMethod
impl UnwindSafe for MetadataCallbackMethod
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.