pub struct Session { /* private fields */ }
Implementations
sourceimpl Session
impl Session
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>
sourceimpl Session
impl Session
pub fn auth_user_info(&mut self, user_info: UserInfo)
pub fn set_user_and_password<U: ToString, P: ToString>(
&mut self,
username: U,
password: P
)
pub fn set_user_and_key_pair<U: ToString, K: ToString>(
&mut self,
username: U,
key_str: K,
key_type: KeyPairType
) -> SshResult<()>
pub fn set_user_and_key_pair_path<U: ToString, P: AsRef<Path>>(
&mut 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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