[][src]Struct thrussh::client::Session

pub struct Session { /* fields omitted */ }

Implementations

impl Session[src]

pub fn channel_open_session(&mut self) -> Result<ChannelId, Error>[src]

pub fn channel_open_x11(
    &mut self,
    originator_address: &str,
    originator_port: u32
) -> Result<ChannelId, Error>
[src]

pub fn channel_open_direct_tcpip(
    &mut self,
    host_to_connect: &str,
    port_to_connect: u32,
    originator_address: &str,
    originator_port: u32
) -> Result<ChannelId, Error>
[src]

pub fn request_pty(
    &mut self,
    channel: ChannelId,
    want_reply: bool,
    term: &str,
    col_width: u32,
    row_height: u32,
    pix_width: u32,
    pix_height: u32,
    terminal_modes: &[(Pty, u32)]
)
[src]

pub fn request_x11(
    &mut self,
    channel: ChannelId,
    want_reply: bool,
    single_connection: bool,
    x11_authentication_protocol: &str,
    x11_authentication_cookie: &str,
    x11_screen_number: u32
)
[src]

pub fn set_env(
    &mut self,
    channel: ChannelId,
    want_reply: bool,
    variable_name: &str,
    variable_value: &str
)
[src]

pub fn request_shell(&mut self, want_reply: bool, channel: ChannelId)[src]

pub fn exec(&mut self, channel: ChannelId, want_reply: bool, command: &str)[src]

pub fn signal(&mut self, channel: ChannelId, signal: Sig)[src]

pub fn request_subsystem(
    &mut self,
    want_reply: bool,
    channel: ChannelId,
    name: &str
)
[src]

pub fn window_change(
    &mut self,
    channel: ChannelId,
    col_width: u32,
    row_height: u32,
    pix_width: u32,
    pix_height: u32
)
[src]

pub fn tcpip_forward(&mut self, want_reply: bool, address: &str, port: u32)[src]

pub fn cancel_tcpip_forward(
    &mut self,
    want_reply: bool,
    address: &str,
    port: u32
)
[src]

pub fn data(&mut self, channel: ChannelId, data: CryptoVec)[src]

pub fn eof(&mut self, channel: ChannelId)[src]

pub fn extended_data(&mut self, channel: ChannelId, ext: u32, data: CryptoVec)[src]

pub fn disconnect(
    &mut self,
    reason: Disconnect,
    description: &str,
    language_tag: &str
)
[src]

pub fn has_pending_data(&self, channel: ChannelId) -> bool[src]

pub fn sender_window_size(&self, channel: ChannelId) -> usize[src]

Trait Implementations

impl Drop for Session[src]

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

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.