Skip to main content

qubit_fs/metadata/
file_system_capability_support.rs

1// =============================================================================
2//    Copyright (c) 2026 Haixing Hu.
3//
4//    SPDX-License-Identifier: Apache-2.0
5//
6//    Licensed under the Apache License, Version 2.0.
7// =============================================================================
8//! Support status for one filesystem capability.
9
10/// Describes how a filesystem provider can satisfy a capability.
11///
12/// # Examples
13///
14/// ```rust
15/// use qubit_fs::metadata::FileSystemCapabilitySupport;
16///
17/// assert!(matches!(FileSystemCapabilitySupport::Unsupported, FileSystemCapabilitySupport::Unsupported));
18/// ```
19#[derive(Clone, Copy, Debug, Eq, PartialEq)]
20#[must_use]
21pub enum FileSystemCapabilitySupport {
22    /// The provider does not implement the capability.
23    Unsupported,
24    /// The provider can attempt the capability, but support depends on the
25    /// request, authority, mount, or runtime state.
26    Conditional,
27    /// The provider supports the capability for every valid request in its
28    /// advertised filesystem scope.
29    Guaranteed,
30}