pub struct Session;
Implementations
sourceimpl Session
impl Session
pub fn is_enable_log(&self, b: bool)
pub fn set_timeout(&self, secs: u64)
sourceimpl Session
impl Session
pub fn connect<A>(&mut self, addr: A) -> Result<(), SshError> where
A: ToSocketAddrs,
pub fn open_channel(&mut self) -> SshResult<Channel>
pub fn open_exec(&mut self) -> SshResult<ChannelExec>
pub fn open_shell(&mut self) -> SshResult<ChannelShell>
pub fn open_scp(&mut self) -> SshResult<ChannelScp>
pub fn close(self) -> SshResult<()>
sourceimpl Session
impl Session
pub fn auth_user_info(&self, user_info: UserInfo)
pub fn set_user_and_password<U: ToString, P: ToString>(
&self,
username: U,
password: P
)
pub fn set_user_and_key_pair<U: ToString, K: ToString>(
&self,
username: U,
key_str: K,
key_type: KeyPairType
) -> SshResult<()>
pub fn set_user_and_key_pair_path<U: ToString, P: AsRef<Path>>(
&self,
username: U,
key_path: P,
key_type: KeyPairType
) -> SshResult<()>
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