Struct thrussh::client::Channel [−][src]
pub struct Channel { /* fields omitted */ }
Implementations
Returns the min between the maximum packet size and the remaining window size in the channel.
Request a pseudo-terminal with the given characteristics.
Request a remote shell.
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).
Request the start of a subsystem with the given name.
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()
).
Cancel a previous forwarding request.
Request X11 forwarding through an already opened X11 channel. See RFC4254 for security issues related to cookies.
Set a remote environment variable.
Inform the server that our window size has changed.
Send data to a channel.
pub async fn extended_data<R: AsyncReadExt + Unpin>(
&mut self,
ext: u32,
data: R
) -> Result<(), Error>
pub async fn extended_data<R: AsyncReadExt + Unpin>(
&mut self,
ext: u32,
data: R
) -> 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.
Wait for data to come.
Auto Trait Implementations
impl !RefUnwindSafe for Channel
impl !UnwindSafe for Channel