pub struct SshPool { /* private fields */ }Implementations§
Source§impl SshPool
impl SshPool
pub async fn connect(servers: &HashMap<String, Server>) -> Result<Self>
pub async fn connect_one(name: &str, server: &Server) -> Result<Self>
pub fn get(&self, server: &str) -> Result<&Session>
pub async fn exec(&self, server: &str, cmd: &str) -> Result<String>
pub async fn exec_streaming( &self, server: &str, cmd: &str, ) -> Result<Child<&Session>>
pub async fn upload_file( &self, server: &str, remote_path: &str, content: &str, ) -> Result<()>
pub async fn close(self) -> Result<()>
Auto Trait Implementations§
impl Freeze for SshPool
impl RefUnwindSafe for SshPool
impl Send for SshPool
impl Sync for SshPool
impl Unpin for SshPool
impl UnsafeUnpin for SshPool
impl UnwindSafe for SshPool
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