Implementations
sourceimpl Session<TcpStream>
impl Session<TcpStream>
pub fn connect<A>(&mut self, addr: A) -> SshResult<()>where
A: ToSocketAddrs,
sourceimpl<S> Session<S>where
S: Read + Write,
impl<S> Session<S>where
S: Read + Write,
pub fn open_channel(&mut self) -> SshResult<Channel<S>>
pub fn open_exec(&mut self) -> SshResult<ChannelExec<S>>
pub fn open_shell(&mut self) -> SshResult<ChannelShell<S>>
pub fn open_scp(&mut self) -> SshResult<ChannelScp<S>>
sourceimpl<S> Session<S>where
S: Read + Write,
impl<S> Session<S>where
S: Read + Write,
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<S> !RefUnwindSafe for Session<S>
impl<S> !Send for Session<S>
impl<S> !Sync for Session<S>
impl<S> Unpin for Session<S>where
S: Unpin,
impl<S> !UnwindSafe for Session<S>
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