Struct thrussh::client::Session [−][src]
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]
&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]
pub fn send_channel_msg(&self, channel: ChannelId, msg: ChannelMsg) -> bool
[src]
Send a ChannelMsg
from the background handler to the client.
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,