Skip to main content

ContractCheckId

Enum ContractCheckId 

Source
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.

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

Source

pub const ALL: &[Self]

Every recognized identity, including runtime-specific optional probes.

Source

pub const fn contract(self) -> FileSystemContract

Returns the sole phase responsible for this check.

§Returns

The contract phase that owns this check.

Source

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.

Source

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.

Source

pub const fn as_str(self) -> &'static str

Returns this check’s allocation-free stable diagnostic name.

§Returns

A process-lifetime name shared by selection, reports and diagnostics.

Trait Implementations§

Source§

impl Clone for ContractCheckId

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ContractCheckId

Source§

impl Debug for ContractCheckId

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for ContractCheckId

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> FmtResult

Writes the stable name without allocating or exposing provider data.

§Parameters
  • formatter: The destination for the stable check name.
Source§

impl Eq for ContractCheckId

Source§

impl Hash for ContractCheckId

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for ContractCheckId

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

fn clamp_to<R>(self, range: R) -> Self
where Self: Sized, R: ClampBounds<Self>,

🔬This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range. Read more
Source§

impl PartialEq for ContractCheckId

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd for ContractCheckId

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for ContractCheckId

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.