Skip to main content

ExecSessionProvider

Trait ExecSessionProvider 

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

Required Methods§

Source

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

Implements spawn exec.

Source

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

Closes exec.

Implementors§