[][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>

impl<S> Send for AsyncSession<S> where
    S: Send + Sync

impl<S> Sync for AsyncSession<S> where
    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]

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.