Struct thrussh::client::Session [−][src]
pub struct Session { /* fields omitted */ }
Implementations
impl Session
[src]
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]
&mut self,
originator_address: &str,
originator_port: u32
) -> Result<ChannelId, Error>
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]
&mut self,
host_to_connect: &str,
port_to_connect: u32,
originator_address: &str,
originator_port: u32
) -> Result<ChannelId, Error>
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]
&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)]
)
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]
&mut self,
channel: ChannelId,
want_reply: bool,
single_connection: bool,
x11_authentication_protocol: &str,
x11_authentication_cookie: &str,
x11_screen_number: u32
)
pub fn set_env(
&mut self,
channel: ChannelId,
want_reply: bool,
variable_name: &str,
variable_value: &str
)
[src]
&mut self,
channel: ChannelId,
want_reply: bool,
variable_name: &str,
variable_value: &str
)
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]
&mut self,
want_reply: bool,
channel: ChannelId,
name: &str
)
pub fn window_change(
&mut self,
channel: ChannelId,
col_width: u32,
row_height: u32,
pix_width: u32,
pix_height: u32
)
[src]
&mut self,
channel: ChannelId,
col_width: u32,
row_height: u32,
pix_width: u32,
pix_height: u32
)
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]
&mut self,
want_reply: bool,
address: &str,
port: u32
)
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]
&mut self,
reason: Disconnect,
description: &str,
language_tag: &str
)
pub fn has_pending_data(&self, channel: ChannelId) -> bool
[src]
pub fn sender_window_size(&self, channel: ChannelId) -> usize
[src]
impl Session
[src]
impl Session
[src]pub fn send_channel_msg(&self, channel: ChannelId, msg: ChannelMsg) -> bool
[src]
pub fn send_channel_msg(&self, channel: ChannelId, msg: ChannelMsg) -> bool
[src]Send a ChannelMsg
from the background handler to the client.