pub type LocalPathGuard = Arc<dyn Fn(&Path) -> Option<String> + Send + Sync>;Expand description
Refuses a built-in file tool’s access to one host path.
Called with an absolute path (relative spellings are already joined to the
host working directory, as crate::substrate::LocalSubstrate does) and
returns the refusal message, or None to let the tool go ahead. The guard
owns resolution: it decides what a symlink or .. in that path names.
Aliased Type§
pub struct LocalPathGuard { /* private fields */ }