plat/capabilities.rs#
Source: lib/plat/capabilities.rs
Platform service availability, shared by app commands, agent schemas and browser hosts.
/// Read files through the platform's file namespace.
CAP_FILE_READ: u64 = 1 << 0
/// Write files through the platform's file namespace.
CAP_FILE_WRITE: u64 = 1 << 1
/// Confirm durable storage, rather than a temporary in-memory write.
CAP_PERSISTENT_STORAGE: u64 = 1 << 2
/// Exchange plain UTF-8 clipboard text.
CAP_CLIPBOARD_TEXT: u64 = 1 << 3
/// Exchange native/RTF/HTML rich clipboard representations.
/// Browser hosts provide an instance-local clipboard, without OS rich-format access.
CAP_CLIPBOARD_RICH: u64 = 1 << 4
/// Exchange clipboard images.
CAP_CLIPBOARD_IMAGE: u64 = 1 << 5
/// Submit a print job through the host.
CAP_PRINT: u64 = 1 << 6
/// Discover fonts installed in the operating system.
CAP_SYSTEM_FONTS: u64 = 1 << 7
/// Load native shared libraries with the platform plugin ABI.
CAP_NATIVE_PLUGINS: u64 = 1 << 8
/// Connect through a user-local IPC transport after explicit activation.
CAP_LOCAL_IPC: u64 = 1 << 9
/// Display windows, including library windows inside a browser canvas.
CAP_WINDOWING: u64 = 1 << 10
/// Run parallel operating-system threads.
CAP_THREADS: u64 = 1 << 11
/// Install operating-system shortcuts or integrations.
CAP_SHELL_INTEGRATION: u64 = 1 << 12
/// Hand a text, a link or files to another app through the system's share sheet (share.rs).
CAP_SHARE: u64 = 1 << 13
struct CapabilitiesSnapshot of services actually provided by the current host.available: u64-- Bit set of theCAP_*services.
impl Capabilities
const fn supports(self, required: u64) -> boolWhether every requested service is available.fn capabilities() -> CapabilitiesCurrent native service set, less what the app's permissions leave out (policy.rs). Browser permissions are supplied by its host adapter.