Skip to main content

Host

Trait Host 

Source
pub trait Host {
    // Required method
    fn run(
        &mut self,
        binary: String,
        args: Vec<String>,
        env: Vec<(String, String)>,
    ) -> Result<ShellResult, String>;
}

Required Methods§

Source

fn run( &mut self, binary: String, args: Vec<String>, env: Vec<(String, String)>, ) -> Result<ShellResult, String>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<_T: Host + ?Sized> Host for &mut _T

Source§

fn run( &mut self, binary: String, args: Vec<String>, env: Vec<(String, String)>, ) -> Result<ShellResult, String>

Implementors§