pub enum CommitValidationError {
Show 50 variants
EmptyCommit,
NamespaceMismatch,
NamePreconditionParentMissing {
parent_inode_id: InodeId,
},
NamePreconditionParentNotDirectory {
parent_inode_id: InodeId,
actual_kind: InodeKind,
},
BindingPreconditionMissing {
parent_inode_id: InodeId,
name_key: NameKey,
},
BindingPreconditionMismatch {
parent_inode_id: InodeId,
name_key: NameKey,
expected_child_inode_id: InodeId,
actual_child_inode_id: InodeId,
},
DirectoryEmptyPreconditionInodeMissing {
inode_id: InodeId,
},
DirectoryEmptyPreconditionInodeNotDirectory {
inode_id: InodeId,
actual_kind: InodeKind,
},
DirectoryEmptyPreconditionNotEmpty {
inode_id: InodeId,
},
CreateParentMissing {
parent_inode_id: InodeId,
},
CreateParentNotDirectory {
parent_inode_id: InodeId,
actual_kind: InodeKind,
},
CreateChildNameCollision {
parent_inode_id: InodeId,
name_key: NameKey,
child_inode_id: InodeId,
},
InvalidDisplayName {
display_name: String,
reason: String,
},
CreateUnderSubtreeTombstone {
parent_inode_id: InodeId,
root_inode_id: InodeId,
tombstone_seq: ChangeSeq,
},
ReplaceFileInodeMissing {
inode_id: InodeId,
},
ReplaceFileInodeNotFile {
inode_id: InodeId,
actual_kind: InodeKind,
},
ReplaceFileBaseRevisionMismatch {
inode_id: InodeId,
expected: RevisionNo,
actual: Option<RevisionNo>,
},
RestoreRevisionInodeMissing {
inode_id: InodeId,
},
RestoreRevisionInodeNotFile {
inode_id: InodeId,
actual_kind: InodeKind,
},
RestoreRevisionBaseRevisionMismatch {
inode_id: InodeId,
expected: RevisionNo,
actual: Option<RevisionNo>,
},
RestoreRevisionSourceRevisionMissing {
inode_id: InodeId,
source_revision_no: RevisionNo,
},
RestoreRevisionUnderSubtreeTombstone {
inode_id: InodeId,
root_inode_id: InodeId,
tombstone_seq: ChangeSeq,
},
ReplaceFileUnderSubtreeTombstone {
inode_id: InodeId,
root_inode_id: InodeId,
tombstone_seq: ChangeSeq,
},
DeleteFileInodeMissing {
inode_id: InodeId,
},
DeleteFileInodeNotFile {
inode_id: InodeId,
actual_kind: InodeKind,
},
DeleteFileCoveredByTombstone {
inode_id: InodeId,
covering_root_inode_id: InodeId,
tombstone_seq: ChangeSeq,
},
RenameInodeMissing {
inode_id: InodeId,
},
RenameSourceBindingMissing {
inode_id: InodeId,
},
SourceBindingMissing {
inode_id: InodeId,
},
RenameTargetParentMissing {
parent_inode_id: InodeId,
},
RenameTargetParentNotDirectory {
parent_inode_id: InodeId,
actual_kind: InodeKind,
},
RenameTargetNameCollision {
parent_inode_id: InodeId,
name_key: NameKey,
child_inode_id: InodeId,
},
RenameWouldCycleDirectory {
inode_id: InodeId,
new_parent_inode_id: InodeId,
},
RenameInodeUnderSubtreeTombstone {
inode_id: InodeId,
root_inode_id: InodeId,
tombstone_seq: ChangeSeq,
},
RenameTargetParentUnderSubtreeTombstone {
parent_inode_id: InodeId,
root_inode_id: InodeId,
tombstone_seq: ChangeSeq,
},
DeleteSubtreeRootMissing {
root_inode_id: InodeId,
},
DeleteSubtreeRootNotDirectory {
root_inode_id: InodeId,
actual_kind: InodeKind,
},
DeleteSubtreeRootCoveredByTombstone {
root_inode_id: InodeId,
covering_root_inode_id: InodeId,
tombstone_seq: ChangeSeq,
},
UndeleteInodeMissing {
inode_id: InodeId,
},
UndeleteTargetNotDeleted {
inode_id: InodeId,
},
UndeleteTargetsCurrentCommit {
inode_id: InodeId,
requested_seq: ChangeSeq,
},
UndeleteGenerationMismatch {
inode_id: InodeId,
requested_seq: ChangeSeq,
active_seq: ChangeSeq,
},
RestoreRevisionOverflow {
inode_id: InodeId,
base_revision_no: RevisionNo,
},
ReplaceFileRevisionOverflow {
inode_id: InodeId,
base_revision_no: RevisionNo,
},
StaleWriterEpoch {
active: WriterEpoch,
requested: WriterEpoch,
},
ValidatedPreviewApplyFailed(String),
SeqOverflow,
NextInodeOverflow,
OpIndexOverflow,
DeltaIndexOverflow,
}Variants§
EmptyCommit
NamespaceMismatch
NamePreconditionParentMissing
NamePreconditionParentNotDirectory
BindingPreconditionMissing
BindingPreconditionMismatch
Fields
DirectoryEmptyPreconditionInodeMissing
DirectoryEmptyPreconditionInodeNotDirectory
DirectoryEmptyPreconditionNotEmpty
CreateParentMissing
CreateParentNotDirectory
CreateChildNameCollision
InvalidDisplayName
CreateUnderSubtreeTombstone
ReplaceFileInodeMissing
ReplaceFileInodeNotFile
ReplaceFileBaseRevisionMismatch
RestoreRevisionInodeMissing
RestoreRevisionInodeNotFile
RestoreRevisionBaseRevisionMismatch
RestoreRevisionSourceRevisionMissing
RestoreRevisionUnderSubtreeTombstone
ReplaceFileUnderSubtreeTombstone
DeleteFileInodeMissing
DeleteFileInodeNotFile
DeleteFileCoveredByTombstone
RenameInodeMissing
RenameSourceBindingMissing
SourceBindingMissing
RenameTargetParentMissing
RenameTargetParentNotDirectory
RenameTargetNameCollision
RenameWouldCycleDirectory
RenameInodeUnderSubtreeTombstone
RenameTargetParentUnderSubtreeTombstone
DeleteSubtreeRootMissing
DeleteSubtreeRootNotDirectory
DeleteSubtreeRootCoveredByTombstone
UndeleteInodeMissing
UndeleteTargetNotDeleted
UndeleteTargetsCurrentCommit
UndeleteGenerationMismatch
RestoreRevisionOverflow
ReplaceFileRevisionOverflow
StaleWriterEpoch
ValidatedPreviewApplyFailed(String)
SeqOverflow
NextInodeOverflow
OpIndexOverflow
DeltaIndexOverflow
Trait Implementations§
Source§impl Clone for CommitValidationError
impl Clone for CommitValidationError
Source§fn clone(&self) -> CommitValidationError
fn clone(&self) -> CommitValidationError
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 CommitValidationError
impl Debug for CommitValidationError
Source§impl<'de> Deserialize<'de> for CommitValidationError
impl<'de> Deserialize<'de> for CommitValidationError
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
Source§impl Display for CommitValidationError
impl Display for CommitValidationError
impl Eq for CommitValidationError
Source§impl Error for CommitValidationError
impl Error for CommitValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<CommitValidationError> for CoreError
impl From<CommitValidationError> for CoreError
Source§fn from(source: CommitValidationError) -> Self
fn from(source: CommitValidationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CommitValidationError
impl PartialEq for CommitValidationError
Source§impl Serialize for CommitValidationError
impl Serialize for CommitValidationError
impl StructuralPartialEq for CommitValidationError
Auto Trait Implementations§
impl Freeze for CommitValidationError
impl RefUnwindSafe for CommitValidationError
impl Send for CommitValidationError
impl Sync for CommitValidationError
impl Unpin for CommitValidationError
impl UnsafeUnpin for CommitValidationError
impl UnwindSafe for CommitValidationError
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
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<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> 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 more