pub struct CmdlineClient { /* private fields */ }
Expand description
A commandline client implementation
This opens a single channel and presents it to the stdin/stdout terminal.
Implementations§
Source§impl CmdlineClient
impl CmdlineClient
pub fn new(username: impl AsRef<str>, host: impl AsRef<str>) -> Self
pub fn port(&mut self, port: u16) -> &mut Self
pub fn pty(&mut self) -> &mut Self
pub fn exec(&mut self, cmd: impl AsRef<str>) -> &mut Self
pub fn subsystem(&mut self, subsystem: impl AsRef<str>) -> &mut Self
pub fn add_authkey(&mut self, k: SignKey)
pub fn agent(&mut self, agent: AgentClient)
Auto Trait Implementations§
impl !Freeze for CmdlineClient
impl RefUnwindSafe for CmdlineClient
impl Send for CmdlineClient
impl Sync for CmdlineClient
impl Unpin for CmdlineClient
impl UnwindSafe for CmdlineClient
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