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§
Sourcefn spawn_exec(
&mut self,
username: &[u8],
command: &[u8],
) -> Result<ExecSessionWiring, SshCoreError>
fn spawn_exec( &mut self, username: &[u8], command: &[u8], ) -> Result<ExecSessionWiring, SshCoreError>
Implements spawn exec.
Sourcefn close_exec(&mut self, wiring: &ExecSessionWiring) -> Result<(), SshCoreError>
fn close_exec(&mut self, wiring: &ExecSessionWiring) -> Result<(), SshCoreError>
Closes exec.