Skip to main content

Module runtime_policy

Module runtime_policy 

Source
Expand description

Runtime policy and filesystem provider abstraction.

RuntimePolicy captures resource limits and scoped access rules. FileSystemProvider is the trait through which all stdlib filesystem operations are dispatched, allowing the host to swap in a virtual FS, a policy-enforced wrapper, or a routing layer without changing callers.

Structs§

FileMetadata
Metadata about a filesystem entry.
PathEntry
A single entry returned by list_dir.
PolicyEnforcedFs
A filesystem provider that wraps another and enforces a RuntimePolicy.
RealFileSystem
Default filesystem provider that delegates to std::fs.
RoutingFileSystem
Routes filesystem operations to different providers based on path prefix.
RuntimePolicy
Runtime-scoped policy governing what a Shape program may access.

Traits§

FileSystemProvider
Trait for all filesystem operations used by the Shape stdlib.