pub enum ContractCheckId {
Show 76 variants
AppendBasic,
AsyncCopyCancelCommit,
AsyncCopyCancelNativeAttempt,
AsyncCopyCancelReader,
AsyncCopyCancelWriter,
CopyAtomicFile,
CopyAtomicTree,
CopyBasic,
CopyDurableFile,
CopyDurableTree,
CopyFallbackOverwriteRejected,
CopyNativeNonEmpty,
CopyRepeatedExecute,
CopyServerSide,
DeleteBasic,
DeleteIfMatch,
DeleteMissingOk,
DeleteTree,
DirectoryCreate,
DirectoryRecursive,
ErrorContext,
ListBasic,
ListLiteralPrefix,
ListNamespace,
ListRawRootPrefix,
ListPagination,
ListPrefix,
PropertiesCapabilityDependencies,
PropertiesLimitComponentAdmission,
PropertiesLimitListPage,
PropertiesLimitPathAdmission,
PropertiesLimits,
PropertiesPathConstraints,
PropertiesSnapshot,
PropertiesSymlinkPolicy,
ReadBasic,
ReadChecksum,
ReadChecksumCorruption,
ReadIfMatchCurrent,
ReadIfMatchStale,
ReadIfNoneMatchCurrent,
ReadIfNoneMatchStale,
ReadRange,
ReadRangeLimit,
RandomAccessBasic,
RandomAccessBounds,
RandomAccessRangeLimit,
RandomAccessIdentity,
RandomAccessCancel,
RenameAtomic,
RenameBasic,
RenameConflict,
RenameDurable,
RepresentationEmpty,
RepresentationSymlink,
StatBasic,
StatFileKind,
TempAtomic,
TempDirectory,
TempFile,
TempRepeatedLifecycle,
WriteAtomicReplaceExisting,
WriteBasic,
WriteCreateConflict,
WriteReplace,
WriteAbort,
WriteCancelCommit,
WriteCancelFlush,
WriteCancelOpen,
WriteCancelWrite,
WriteDurable,
WriteIfAbsent,
WriteIfMatch,
WriteLimit,
WriteOwningOperation,
WriteRepeatedExecute,
}Expand description
Identifies one independently reported provider contract check.
Stable names are intended for test selection and diagnostics. A report cannot invent a name outside this set; execution and evidence use the same identity even when synchronous and asynchronous drivers differ. Adding a variant can require downstream exhaustive matches to be updated.
§Examples
use qubit_fs_testkit::ContractCheckId;
let check = ContractCheckId::WriteCancelOpen;
assert_eq!(check.as_str(), "write/cancel-open");
assert!(ContractCheckId::ALL.contains(&check));Variants§
AppendBasic
Evidence for the append/basic contract.
AsyncCopyCancelCommit
Evidence for the async-copy/cancel-commit contract.
AsyncCopyCancelNativeAttempt
Evidence for the async-copy/cancel-native-attempt contract.
AsyncCopyCancelReader
Evidence for the async-copy/cancel-reader contract.
AsyncCopyCancelWriter
Evidence for the async-copy/cancel-writer contract.
CopyAtomicFile
Evidence for the copy/atomic-file contract.
CopyAtomicTree
Evidence for the copy/atomic-tree contract.
CopyBasic
Evidence for the copy/basic contract.
CopyDurableFile
Evidence for the copy/durable-file contract.
CopyDurableTree
Evidence for the copy/durable-tree contract.
CopyFallbackOverwriteRejected
Evidence for the copy/fallback-overwrite-rejected contract.
CopyNativeNonEmpty
Evidence that a non-empty file is copied by the native method.
CopyRepeatedExecute
Evidence for the copy/repeated-execute contract.
CopyServerSide
Evidence for the copy/server-side contract.
DeleteBasic
Evidence for the delete/basic contract.
DeleteIfMatch
Evidence for the delete/if-match contract.
DeleteMissingOk
Evidence for the delete/missing-ok contract.
DeleteTree
Evidence for the delete/tree contract.
DirectoryCreate
Evidence for the directory/create contract.
DirectoryRecursive
Evidence for the directory/recursive contract.
ErrorContext
Evidence for the error/context contract.
ListBasic
Evidence for the list/basic contract.
ListLiteralPrefix
Evidence for the list/literal-prefix contract.
ListNamespace
Evidence for the list/namespace contract.
ListRawRootPrefix
Evidence for the list/raw-root-prefix contract.
ListPagination
Evidence for the list/pagination contract.
ListPrefix
Evidence for the list/prefix contract.
PropertiesCapabilityDependencies
Evidence for the properties/capability-dependencies contract.
PropertiesLimitComponentAdmission
Evidence for the properties/limit-component-admission contract.
PropertiesLimitListPage
Evidence for the properties/limit-list-page contract.
PropertiesLimitPathAdmission
Evidence for the properties/limit-path-admission contract.
PropertiesLimits
Evidence for the properties/limits contract.
PropertiesPathConstraints
Evidence for the properties/path-constraints contract.
PropertiesSnapshot
Evidence for the properties/snapshot contract.
PropertiesSymlinkPolicy
Evidence for the properties/symlink-policy contract.
ReadBasic
Evidence for the read/basic contract.
ReadChecksum
Evidence for the read/checksum contract.
ReadChecksumCorruption
Evidence for the read/checksum-corruption contract.
ReadIfMatchCurrent
Evidence for the read/if-match-current contract.
ReadIfMatchStale
Evidence for the read/if-match-stale contract.
ReadIfNoneMatchCurrent
Evidence for the read/if-none-match-current contract.
ReadIfNoneMatchStale
Evidence for the read/if-none-match-stale contract.
ReadRange
Evidence for the read/range contract.
ReadRangeLimit
Evidence for the read/range-limit contract.
RandomAccessBasic
Evidence for the read/random-access-basic contract.
RandomAccessBounds
Evidence for the read/random-access-bounds contract.
RandomAccessRangeLimit
Evidence for the read/random-access-range-limit contract.
RandomAccessIdentity
Evidence for the read/random-access-identity contract.
RandomAccessCancel
Evidence for the read/random-access-cancel contract.
RenameAtomic
Evidence for the rename/atomic contract.
RenameBasic
Evidence for the rename/basic contract.
RenameConflict
Evidence for the rename/conflict contract.
RenameDurable
Evidence for the rename/durable contract.
RepresentationEmpty
Evidence for the representation/empty contract.
RepresentationSymlink
Evidence for the representation/symlink contract.
StatBasic
Evidence for the stat/basic contract.
StatFileKind
Evidence for the stat/file-kind contract.
TempAtomic
Evidence for the temp/atomic contract.
TempDirectory
Evidence for the temp/directory contract.
TempFile
Evidence for the temp/file contract.
TempRepeatedLifecycle
Evidence for the temp/repeated-lifecycle contract.
WriteAtomicReplaceExisting
Evidence for the write/atomic-replace-existing contract.
WriteBasic
Evidence for the write/basic contract.
WriteCreateConflict
Evidence for the write/create-conflict contract.
WriteReplace
Evidence for the write/replace contract.
WriteAbort
Evidence for the write/abort contract.
WriteCancelCommit
Evidence for the write/cancel-commit contract.
WriteCancelFlush
Evidence for the write/cancel-flush contract.
WriteCancelOpen
Evidence for the write/cancel-open contract.
WriteCancelWrite
Evidence for the write/cancel-write contract.
WriteDurable
Evidence for the write/durable contract.
WriteIfAbsent
Evidence for the write/if-absent contract.
WriteIfMatch
Evidence for the write/if-match contract.
WriteLimit
Evidence for the write/limit contract.
WriteOwningOperation
Evidence for the write/owning-operation contract.
WriteRepeatedExecute
Evidence for the write/repeated-execute contract.
Implementations§
Source§impl ContractCheckId
impl ContractCheckId
Sourcepub const fn contract(self) -> FileSystemContract
pub const fn contract(self) -> FileSystemContract
Returns the sole phase responsible for this check.
§Returns
The contract phase that owns this check.
Sourcepub const fn is_optional(self) -> bool
pub const fn is_optional(self) -> bool
Returns whether missing instrumentation may skip this diagnostic probe.
Executed failures are never optional. Callers can require these probes through the report’s explicit requirement selection.
§Returns
true when missing instrumentation may skip this probe.
Sourcepub const fn supports_synchronous(self) -> bool
pub const fn supports_synchronous(self) -> bool
Returns whether the synchronous driver can execute this check.
§Returns
true when the synchronous driver supports this check.