[][src]Struct async_ssh2_lite::AsyncSession

pub struct AsyncSession<S> { /* fields omitted */ }

Implementations

impl<S> AsyncSession<S> where
    S: AsRawFd + FromRawFd + 'static, 
[src]

pub fn new(
    stream: Async<S>,
    configuration: Option<SessionConfiguration>
) -> Result<Self>
[src]

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]

pub async fn userauth_keyboard_interactive<P: KeyboardInteractivePrompt>(
    &self,
    username: &str,
    prompter: &mut P
) -> Result<()>
[src]

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]

pub async fn userauth_pubkey_memory(
    &self,
    username: &str,
    pubkeydata: Option<&str>,
    privatekeydata: &str,
    passphrase: Option<&str>
) -> Result<()>
[src]

pub async fn userauth_hostbased_file(
    &self,
    username: &str,
    publickey: &Path,
    privatekey: &Path,
    passphrase: Option<&str>,
    hostname: &str,
    local_username: Option<&str>
) -> Result<()>
[src]

pub fn authenticated(&self) -> bool[src]

pub async fn auth_methods(&self, username: &str) -> Result<&str>[src]

pub async fn method_pref(
    &self,
    method_type: MethodType,
    prefs: &str
) -> Result<()>
[src]

pub fn methods(&self, method_type: MethodType) -> Option<&str>[src]

pub async fn supported_algs(
    &self,
    method_type: MethodType
) -> Result<Vec<&'static str>>
[src]

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]

pub async fn channel_forward_listen(
    &self,
    remote_port: u16,
    host: Option<&str>,
    queue_maxsize: Option<u32>
) -> Result<(AsyncListener<S>, u16)>
[src]

pub async fn scp_recv(
    &self,
    path: &Path
) -> Result<(AsyncChannel<S>, ScpFileStat)>
[src]

pub async fn scp_send(
    &self,
    remote_path: &Path,
    mode: i32,
    size: u64,
    times: Option<(u64, u64)>
) -> Result<AsyncChannel<S>>
[src]

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]

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]

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]

Auto Trait Implementations

impl<S> !RefUnwindSafe for AsyncSession<S>[src]

impl<S> Send for AsyncSession<S> where
    S: Send + Sync
[src]

impl<S> Sync for AsyncSession<S> where
    S: Send + Sync
[src]

impl<S> Unpin for AsyncSession<S>[src]

impl<S> !UnwindSafe for AsyncSession<S>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.