pub struct Session;
Implementations
sourceimpl Session
impl Session
pub fn is_usage_log(&self, b: bool)
sourceimpl Session
impl Session
pub fn set_user_and_password<S>(&mut self, user: S, password: S) where
S: Into<String>,
sourceimpl Session
impl Session
pub fn connect<A>(&mut self, addr: A) -> Result<(), SshError> where
A: ToSocketAddrs,
pub fn open_channel(&mut self) -> Result<Channel, SshError>
pub fn open_exec(&mut self) -> Result<ChannelExec, SshError>
pub fn open_shell(&mut self) -> Result<ChannelShell, SshError>
pub fn open_scp(&mut self) -> Result<ChannelScp, SshError>
pub fn close(self) -> Result<(), SshError>
Auto Trait Implementations
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more