Struct coolssh::Connection
source · pub struct Connection { /* private fields */ }
Implementations§
source§impl Connection
impl Connection
source§impl Connection
impl Connection
pub fn run( &mut self, command: &str, env: &[(&str, &str)] ) -> Result<RunResult<Run<'_>>>
pub fn quick_run_bytes( &mut self, command: &str ) -> Result<RunResult<(Vec<u8>, Option<ExitStatus>)>>
pub fn quick_run( &mut self, command: &str ) -> Result<RunResult<(String, Option<ExitStatus>)>>
pub fn quick_run_blind( &mut self, command: &str ) -> Result<RunResult<Option<ExitStatus>>>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
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