Skip to main content

ShellPath

Trait ShellPath 

Source
pub trait ShellPath {
    // Required method
    fn shell_path(&self) -> CString;
}
Expand description

Trait for getting the path to the shell executable

Required Methods§

Source

fn shell_path(&self) -> CString

Returns the path to the shell executable.

If possible, this function should return the path to the current shell executable. Otherwise, it should return the path to the default POSIX shell.

Implementors§

Source§

impl ShellPath for RealSystem

Source§

impl ShellPath for VirtualSystem

Source§

impl<T: ShellPath> ShellPath for SharedSystem<T>

Delegates ShellPath methods to the contained implementor.