pub struct Session { /* private fields */ }
Implementations§
source§impl Session
impl Session
pub fn channel_open_session(&mut self) -> Result<ChannelId, Error>
pub fn channel_open_x11( &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>
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)] )
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 )
pub fn set_env( &mut self, channel: ChannelId, want_reply: bool, variable_name: &str, variable_value: &str )
pub fn request_shell(&mut self, want_reply: bool, channel: ChannelId)
pub fn exec(&mut self, channel: ChannelId, want_reply: bool, command: &str)
pub fn signal(&mut self, channel: ChannelId, signal: Sig)
pub fn request_subsystem( &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 )
pub fn tcpip_forward(&mut self, want_reply: bool, address: &str, port: u32)
pub fn cancel_tcpip_forward( &mut self, want_reply: bool, address: &str, port: u32 )
pub fn data(&mut self, channel: ChannelId, data: CryptoVec)
pub fn eof(&mut self, channel: ChannelId)
pub fn extended_data(&mut self, channel: ChannelId, ext: u32, data: CryptoVec)
pub fn disconnect( &mut self, reason: Disconnect, description: &str, language_tag: &str )
pub fn has_pending_data(&self, channel: ChannelId) -> bool
pub fn sender_window_size(&self, channel: ChannelId) -> usize
source§impl Session
impl Session
sourcepub fn send_channel_msg(&self, channel: ChannelId, msg: ChannelMsg) -> bool
pub fn send_channel_msg(&self, channel: ChannelId, msg: ChannelMsg) -> bool
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more