[−][src]Struct async_ssh2_lite::AsyncSession
Implementations
impl<S> AsyncSession<S> where
S: AsRawFd + FromRawFd + 'static,
[src]
S: AsRawFd + FromRawFd + 'static,
impl<S> AsyncSession<S>
[src]
pub fn is_blocking(&self) -> bool
[src]
pub fn banner(&self) -> Option<&str>
[src]
pub fn banner_bytes(&self) -> Option<&[u8]>
[src]
pub fn timeout(&self) -> u32
[src]
impl<S> AsyncSession<S>
[src]
pub async fn handshake<'_>(&'_ mut self) -> Result<()>
[src]
pub async fn userauth_password<'_, '_, '_>(
&'_ self,
username: &'_ str,
password: &'_ str
) -> Result<()>
[src]
&'_ self,
username: &'_ str,
password: &'_ str
) -> Result<()>
pub async fn userauth_keyboard_interactive<'_, '_, '_, P: KeyboardInteractivePrompt>(
&'_ self,
username: &'_ str,
prompter: &'_ mut P
) -> Result<()>
[src]
&'_ self,
username: &'_ str,
prompter: &'_ mut P
) -> Result<()>
pub async fn userauth_agent<'_, '_>(&'_ self, username: &'_ str) -> Result<()>
[src]
pub async fn userauth_pubkey_file<'_, '_, '_, '_, '_>(
&'_ self,
username: &'_ str,
pubkey: Option<&'_ Path>,
privatekey: &'_ Path,
passphrase: Option<&'_ str>
) -> Result<()>
[src]
&'_ self,
username: &'_ str,
pubkey: Option<&'_ Path>,
privatekey: &'_ Path,
passphrase: Option<&'_ str>
) -> Result<()>
pub async fn userauth_pubkey_memory<'_, '_, '_, '_, '_>(
&'_ self,
username: &'_ str,
pubkeydata: Option<&'_ str>,
privatekeydata: &'_ str,
passphrase: Option<&'_ str>
) -> Result<()>
[src]
&'_ self,
username: &'_ str,
pubkeydata: Option<&'_ str>,
privatekeydata: &'_ str,
passphrase: Option<&'_ str>
) -> Result<()>
pub async fn userauth_hostbased_file<'_, '_, '_, '_, '_, '_, '_>(
&'_ self,
username: &'_ str,
publickey: &'_ Path,
privatekey: &'_ Path,
passphrase: Option<&'_ str>,
hostname: &'_ str,
local_username: Option<&'_ str>
) -> Result<()>
[src]
&'_ self,
username: &'_ str,
publickey: &'_ Path,
privatekey: &'_ Path,
passphrase: Option<&'_ str>,
hostname: &'_ str,
local_username: Option<&'_ str>
) -> Result<()>
pub fn authenticated(&self) -> bool
[src]
pub async fn auth_methods<'_, '_, '_>(
&'_ self,
username: &'_ str
) -> Result<&'_ str>
[src]
&'_ self,
username: &'_ str
) -> Result<&'_ str>
pub async fn method_pref<'_, '_>(
&'_ self,
method_type: MethodType,
prefs: &'_ str
) -> Result<()>
[src]
&'_ self,
method_type: MethodType,
prefs: &'_ str
) -> Result<()>
pub fn methods(&self, method_type: MethodType) -> Option<&str>
[src]
pub async fn supported_algs<'_>(
&'_ self,
method_type: MethodType
) -> Result<Vec<&'static str>>
[src]
&'_ self,
method_type: MethodType
) -> Result<Vec<&'static str>>
pub fn agent(&self) -> Result<AsyncAgent<S>>
[src]
pub fn known_hosts(&self) -> Result<KnownHosts>
[src]
pub async fn channel_session<'_>(&'_ self) -> Result<AsyncChannel<S>>
[src]
pub async fn channel_direct_tcpip<'_, '_, '_>(
&'_ self,
host: &'_ str,
port: u16,
src: Option<(&'_ str, u16)>
) -> Result<AsyncChannel<S>>
[src]
&'_ self,
host: &'_ str,
port: u16,
src: Option<(&'_ str, u16)>
) -> Result<AsyncChannel<S>>
pub async fn channel_forward_listen<'_, '_>(
&'_ self,
remote_port: u16,
host: Option<&'_ str>,
queue_maxsize: Option<u32>
) -> Result<(AsyncListener<S>, u16)>
[src]
&'_ self,
remote_port: u16,
host: Option<&'_ str>,
queue_maxsize: Option<u32>
) -> Result<(AsyncListener<S>, u16)>
pub async fn scp_recv<'_, '_>(
&'_ self,
path: &'_ Path
) -> Result<(AsyncChannel<S>, ScpFileStat)>
[src]
&'_ self,
path: &'_ Path
) -> Result<(AsyncChannel<S>, ScpFileStat)>
pub async fn scp_send<'_, '_>(
&'_ self,
remote_path: &'_ Path,
mode: i32,
size: u64,
times: Option<(u64, u64)>
) -> Result<AsyncChannel<S>>
[src]
&'_ self,
remote_path: &'_ Path,
mode: i32,
size: u64,
times: Option<(u64, u64)>
) -> Result<AsyncChannel<S>>
pub async fn sftp<'_>(&'_ self) -> Result<AsyncSftp<S>>
[src]
pub async fn channel_open<'_, '_, '_>(
&'_ self,
channel_type: &'_ str,
window_size: u32,
packet_size: u32,
message: Option<&'_ str>
) -> Result<AsyncChannel<S>>
[src]
&'_ self,
channel_type: &'_ str,
window_size: u32,
packet_size: u32,
message: Option<&'_ str>
) -> Result<AsyncChannel<S>>
pub fn host_key(&self) -> Option<(&[u8], HostKeyType)>
[src]
pub fn host_key_hash(&self, hash: HashType) -> Option<&[u8]>
[src]
pub async fn keepalive_send<'_>(&'_ self) -> Result<u32>
[src]
pub async fn disconnect<'_, '_, '_>(
&'_ self,
reason: Option<DisconnectCode>,
description: &'_ str,
lang: Option<&'_ str>
) -> Result<()>
[src]
&'_ self,
reason: Option<DisconnectCode>,
description: &'_ str,
lang: Option<&'_ str>
) -> Result<()>
pub fn block_directions(&self) -> BlockDirections
[src]
impl<S> AsyncSession<S>
[src]
pub fn last_error(&self) -> Option<Error>
[src]
pub async fn userauth_agent_with_try_next<'_, '_>(
&'_ self,
username: &'_ str
) -> Result<()>
[src]
&'_ self,
username: &'_ str
) -> Result<()>
Auto Trait Implementations
impl<S> !RefUnwindSafe for AsyncSession<S>
impl<S> Send for AsyncSession<S> where
S: Send + Sync,
S: Send + Sync,
impl<S> Sync for AsyncSession<S> where
S: Send + Sync,
S: Send + Sync,
impl<S> Unpin for AsyncSession<S>
impl<S> !UnwindSafe for AsyncSession<S>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,