pub struct RemoteExecutor;Expand description
Remote executor using SSH (via async process spawning with ssh command).
Implementations§
Source§impl RemoteExecutor
impl RemoteExecutor
Sourcepub async fn exec(machine: &Machine, command: &str) -> Result<RemoteExecResult>
pub async fn exec(machine: &Machine, command: &str) -> Result<RemoteExecResult>
Execute a command on a remote machine via SSH.
Sourcepub async fn health_check(machine: &Machine) -> HealthStatus
pub async fn health_check(machine: &Machine) -> HealthStatus
Check if a machine is reachable via SSH.
Auto Trait Implementations§
impl Freeze for RemoteExecutor
impl RefUnwindSafe for RemoteExecutor
impl Send for RemoteExecutor
impl Sync for RemoteExecutor
impl Unpin for RemoteExecutor
impl UnsafeUnpin for RemoteExecutor
impl UnwindSafe for RemoteExecutor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more