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

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]

impl Session[src]

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

Send a ChannelMsg from the background handler to the client.

Trait Implementations

impl Drop for Session[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.