[−][src]Struct thrussh::client::Channel
Implementations
impl Channel
[src]
pub async fn wait<'_>(&'_ mut self) -> Option<ChannelMsg>
[src]
Wait for data to come.
Methods from Deref<Target = ChannelSender>
pub fn id(&self) -> ChannelId
[src]
pub async fn request_pty<'_, '_, '_>(
&'_ mut self,
want_reply: bool,
term: &'_ str,
col_width: u32,
row_height: u32,
pix_width: u32,
pix_height: u32,
terminal_modes: &'_ [(Pty, u32)]
) -> Result<(), Error>
[src]
&'_ mut self,
want_reply: bool,
term: &'_ str,
col_width: u32,
row_height: u32,
pix_width: u32,
pix_height: u32,
terminal_modes: &'_ [(Pty, u32)]
) -> Result<(), Error>
Request a pseudo-terminal with the given characteristics.
pub async fn request_shell<'_>(
&'_ mut self,
want_reply: bool
) -> Result<(), Error>
[src]
&'_ mut self,
want_reply: bool
) -> Result<(), Error>
Request a remote shell.
pub async fn exec<'_, A: Into<String>>(
&'_ mut self,
want_reply: bool,
command: A
) -> Result<(), Error>
[src]
&'_ mut self,
want_reply: bool,
command: A
) -> Result<(), Error>
Execute a remote program (will be passed to a shell). This can be used to implement scp (by calling a remote scp and tunneling to its standard input).
pub async fn signal<'_>(&'_ mut self, signal: Sig) -> Result<(), Error>
[src]
Signal a remote process.
pub async fn request_subsystem<'_, A: Into<String>>(
&'_ mut self,
want_reply: bool,
name: A
) -> Result<(), Error>
[src]
&'_ mut self,
want_reply: bool,
name: A
) -> Result<(), Error>
Request the start of a subsystem with the given name.
pub async fn tcpip_forward<'_, A: Into<String>>(
&'_ mut self,
want_reply: bool,
address: A,
port: u32
) -> Result<(), Error>
[src]
&'_ mut self,
want_reply: bool,
address: A,
port: u32
) -> Result<(), Error>
Request the forwarding of a remote port to the client. The
server will then open forwarding channels (which cause the
client to call .channel_open_forwarded_tcpip()
).
pub async fn cancel_tcpip_forward<'_, A: Into<String>>(
&'_ mut self,
want_reply: bool,
address: A,
port: u32
) -> Result<(), Error>
[src]
&'_ mut self,
want_reply: bool,
address: A,
port: u32
) -> Result<(), Error>
Cancel a previous forwarding request.
pub async fn request_x11<'_, A: Into<String>, B: Into<String>>(
&'_ mut self,
want_reply: bool,
single_connection: bool,
x11_authentication_protocol: A,
x11_authentication_cookie: B,
x11_screen_number: u32
) -> Result<(), Error>
[src]
&'_ mut self,
want_reply: bool,
single_connection: bool,
x11_authentication_protocol: A,
x11_authentication_cookie: B,
x11_screen_number: u32
) -> Result<(), Error>
Request X11 forwarding through an already opened X11 channel. See RFC4254 for security issues related to cookies.
pub async fn set_env<'_, A: Into<String>, B: Into<String>>(
&'_ mut self,
want_reply: bool,
variable_name: A,
variable_value: B
) -> Result<(), Error>
[src]
&'_ mut self,
want_reply: bool,
variable_name: A,
variable_value: B
) -> Result<(), Error>
Set a remote environment variable.
pub async fn window_change<'_>(
&'_ mut self,
col_width: u32,
row_height: u32,
pix_width: u32,
pix_height: u32
) -> Result<(), Error>
[src]
&'_ mut self,
col_width: u32,
row_height: u32,
pix_width: u32,
pix_height: u32
) -> Result<(), Error>
Inform the server that our window size has changed.
pub async fn data<'_, B: AsRef<[u8]>>(
&'_ mut self,
data: B
) -> Result<(), Error>
[src]
&'_ mut self,
data: B
) -> Result<(), Error>
Send data to a channel. The number of bytes added to the "sending pipeline" (to be processed by the event loop) is returned.
pub async fn extended_data<'_, '_>(
&'_ mut self,
ext: u32,
data: &'_ [u8]
) -> Result<(), Error>
[src]
&'_ mut self,
ext: u32,
data: &'_ [u8]
) -> Result<(), Error>
Send data to a channel. The number of bytes added to the "sending pipeline" (to be processed by the event loop) is returned.
pub async fn eof<'_>(&'_ mut self) -> Result<(), Error>
[src]
Trait Implementations
impl Deref for Channel
[src]
type Target = ChannelSender
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl DerefMut for Channel
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl !UnwindSafe for Channel
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,
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.
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>,