[−][src]Struct async_ssh2::Channel
See Channel
.
Implementations
impl Channel
[src]
pub async fn setenv<'_, '_, '_>(
&'_ mut self,
var: &'_ str,
val: &'_ str
) -> Result<(), Error>
[src]
&'_ mut self,
var: &'_ str,
val: &'_ str
) -> Result<(), Error>
See setenv
.
pub async fn request_pty<'_, '_>(
&'_ mut self,
term: &'_ str,
mode: Option<PtyModes>,
dim: Option<(u32, u32, u32, u32)>
) -> Result<(), Error>
[src]
&'_ mut self,
term: &'_ str,
mode: Option<PtyModes>,
dim: Option<(u32, u32, u32, u32)>
) -> Result<(), Error>
See request_pty
.
pub async fn request_pty_size<'_>(
&'_ mut self,
width: u32,
height: u32,
width_px: Option<u32>,
height_px: Option<u32>
) -> Result<(), Error>
[src]
&'_ mut self,
width: u32,
height: u32,
width_px: Option<u32>,
height_px: Option<u32>
) -> Result<(), Error>
See request_pty_size
.
pub async fn exec<'_, '_>(&'_ mut self, command: &'_ str) -> Result<(), Error>
[src]
See exec
.
pub async fn shell<'_>(&'_ mut self) -> Result<(), Error>
[src]
See shell
.
pub async fn subsystem<'_, '_>(
&'_ mut self,
system: &'_ str
) -> Result<(), Error>
[src]
&'_ mut self,
system: &'_ str
) -> Result<(), Error>
See subsystem
.
pub async fn process_startup<'_, '_, '_>(
&'_ mut self,
request: &'_ str,
message: Option<&'_ str>
) -> Result<(), Error>
[src]
&'_ mut self,
request: &'_ str,
message: Option<&'_ str>
) -> Result<(), Error>
See process_startup
.
pub fn stderr(&mut self) -> Stream
[src]
See stderr
.
pub fn stream(&mut self, stream_id: i32) -> Stream
[src]
See stream
.
pub async fn handle_extended_data<'_>(
&'_ mut self,
mode: ExtendedData
) -> Result<(), Error>
[src]
&'_ mut self,
mode: ExtendedData
) -> Result<(), Error>
See handle_extended_data
.
pub fn exit_status(&self) -> Result<i32, Error>
[src]
See exit_status
.
pub fn exit_signal(&self) -> Result<ExitSignal, Error>
[src]
See exit_signal
.
pub fn read_window(&self) -> ReadWindow
[src]
See read_window
.
pub fn write_window(&self) -> WriteWindow
[src]
See write_window
.
pub async fn adjust_receive_window<'_>(
&'_ mut self,
adjust: u64,
force: bool
) -> Result<u64, Error>
[src]
&'_ mut self,
adjust: u64,
force: bool
) -> Result<u64, Error>
pub fn eof(&self) -> bool
[src]
See eof
.
pub async fn send_eof<'_>(&'_ mut self) -> Result<(), Error>
[src]
See send_eof
.
pub async fn wait_eof<'_>(&'_ mut self) -> Result<(), Error>
[src]
See wait_eof
.
pub async fn close<'_>(&'_ mut self) -> Result<(), Error>
[src]
See close
.
pub async fn wait_close<'_>(&'_ mut self) -> Result<(), Error>
[src]
See wait_close
.
Trait Implementations
impl AsyncRead for Channel
[src]
fn poll_read(
self: Pin<&mut Self>,
cx: &mut Context,
buf: &mut [u8]
) -> Poll<Result<usize>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
buf: &mut [u8]
) -> Poll<Result<usize>>
fn poll_read_vectored(
self: Pin<&mut Self>,
cx: &mut Context,
bufs: &mut [IoSliceMut]
) -> Poll<Result<usize, Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
bufs: &mut [IoSliceMut]
) -> Poll<Result<usize, Error>>
impl AsyncWrite for Channel
[src]
fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context,
buf: &[u8]
) -> Poll<Result<usize, Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
buf: &[u8]
) -> Poll<Result<usize, Error>>
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Result<()>>
[src]
fn poll_close(self: Pin<&mut Self>, _cx: &mut Context) -> Poll<Result<()>>
[src]
fn poll_write_vectored(
self: Pin<&mut Self>,
cx: &mut Context,
bufs: &[IoSlice]
) -> Poll<Result<usize, Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
bufs: &[IoSlice]
) -> Poll<Result<usize, Error>>
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<R> AsyncReadExt for R where
R: AsyncRead + ?Sized,
[src]
R: AsyncRead + ?Sized,
fn chain<R>(self, next: R) -> Chain<Self, R> where
R: AsyncRead,
[src]
R: AsyncRead,
fn read(&'a mut self, buf: &'a mut [u8]) -> Read<'a, Self> where
Self: Unpin,
[src]
Self: Unpin,
fn read_vectored(
&'a mut self,
bufs: &'a mut [IoSliceMut<'a>]
) -> ReadVectored<'a, Self> where
Self: Unpin,
[src]
&'a mut self,
bufs: &'a mut [IoSliceMut<'a>]
) -> ReadVectored<'a, Self> where
Self: Unpin,
fn read_exact(&'a mut self, buf: &'a mut [u8]) -> ReadExact<'a, Self> where
Self: Unpin,
[src]
Self: Unpin,
fn read_to_end(&'a mut self, buf: &'a mut Vec<u8>) -> ReadToEnd<'a, Self> where
Self: Unpin,
[src]
Self: Unpin,
fn read_to_string(&'a mut self, buf: &'a mut String) -> ReadToString<'a, Self> where
Self: Unpin,
[src]
Self: Unpin,
fn split(self) -> (ReadHalf<Self>, WriteHalf<Self>) where
Self: AsyncWrite,
[src]
Self: AsyncWrite,
fn take(self, limit: u64) -> Take<Self>
[src]
impl<W> AsyncWriteExt for W where
W: AsyncWrite + ?Sized,
[src]
W: AsyncWrite + ?Sized,
fn flush(&mut self) -> Flush<Self> where
Self: Unpin,
[src]
Self: Unpin,
fn close(&mut self) -> Close<Self> where
Self: Unpin,
[src]
Self: Unpin,
fn write(&'a mut self, buf: &'a [u8]) -> Write<'a, Self> where
Self: Unpin,
[src]
Self: Unpin,
fn write_vectored(
&'a mut self,
bufs: &'a [IoSlice<'a>]
) -> WriteVectored<'a, Self> where
Self: Unpin,
[src]
&'a mut self,
bufs: &'a [IoSlice<'a>]
) -> WriteVectored<'a, Self> where
Self: Unpin,
fn write_all(&'a mut self, buf: &'a [u8]) -> WriteAll<'a, Self> where
Self: Unpin,
[src]
Self: Unpin,
fn into_sink<Item>(self) -> IntoSink<Self, Item> where
Item: AsRef<[u8]>,
[src]
Item: AsRef<[u8]>,
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>,