pub struct NoResolver;Expand description
Resolver for callers without a search path (tests, policy check without state).
Trait Implementations§
Source§impl Clone for NoResolver
impl Clone for NoResolver
impl Copy for NoResolver
Source§impl Debug for NoResolver
impl Debug for NoResolver
Source§impl Default for NoResolver
impl Default for NoResolver
Source§impl PathResolver for NoResolver
impl PathResolver for NoResolver
Source§fn resolve(&self, _path: &str) -> Option<String>
fn resolve(&self, _path: &str) -> Option<String>
The path
path really refers to, or None when it is the same path or
cannot be resolved. Paths that do not exist yet resolve through their
deepest existing ancestor, so a new file written into a symlinked
directory still resolves to where it would land.Source§fn read_dir(&self, _dir: &str) -> Vec<String>
fn read_dir(&self, _dir: &str) -> Vec<String>
The names in the directory
dir (a normalised absolute path), without
. and ..; empty when it is not a directory or cannot be read. Used
only to expand an unquoted glob operand as the shell would
(crate::expand). Without a filesystem nothing is listed, and the
operand stays literal, as a glob that matches nothing does in bash.Auto Trait Implementations§
impl Freeze for NoResolver
impl RefUnwindSafe for NoResolver
impl Send for NoResolver
impl Sync for NoResolver
impl Unpin for NoResolver
impl UnsafeUnpin for NoResolver
impl UnwindSafe for NoResolver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more