pub trait Host {
// Required methods
fn exists(&self, path: &[u8]) -> bool;
fn is_dir(&self, path: &[u8]) -> bool;
fn host_path(&self, path: &[u8]) -> Vec<u8> ⓘ;
fn cwd(&self) -> Vec<u8> ⓘ;
fn var(&self, name: &[u8]) -> Option<Vec<u8>>;
fn vars(&self) -> Vec<(Vec<u8>, Vec<u8>)>;
fn read_fd(&self, fd: i32) -> Result<Vec<u8>>;
fn fd_path(&self, fd: i32) -> Result<Vec<u8>>;
}Expand description
The process a command line is interpreted for.
Required Methods§
Sourcefn is_dir(&self, path: &[u8]) -> bool
fn is_dir(&self, path: &[u8]) -> bool
Whether path, as this process names it, is a directory (symlinks followed).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".