Skip to main content

ExecSessionProvider

Trait ExecSessionProvider 

Source
pub trait ExecSessionProvider {
    // Required methods
    fn spawn_exec(
        &mut self,
        username: &[u8],
        command: &[u8],
    ) -> Result<ExecSessionWiring>;
    fn close_exec(&mut self, wiring: &ExecSessionWiring) -> Result<()>;
}

Required Methods§

Source

fn spawn_exec( &mut self, username: &[u8], command: &[u8], ) -> Result<ExecSessionWiring>

Implements spawn exec.

Source

fn close_exec(&mut self, wiring: &ExecSessionWiring) -> Result<()>

Closes exec.

Implementors§