[][src]Struct async_ssh2::Channel

pub struct Channel { /* fields omitted */ }

See Channel.

Implementations

impl Channel[src]

pub async fn setenv<'_, '_, '_>(
    &'_ mut self,
    var: &'_ str,
    val: &'_ str
) -> Result<(), Error>
[src]

See setenv.

pub async fn request_pty<'_, '_>(
    &'_ mut self,
    term: &'_ str,
    mode: Option<PtyModes>,
    dim: Option<(u32, u32, u32, u32)>
) -> Result<(), Error>
[src]

pub async fn request_pty_size<'_>(
    &'_ mut self,
    width: u32,
    height: u32,
    width_px: Option<u32>,
    height_px: Option<u32>
) -> Result<(), Error>
[src]

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]

See subsystem.

pub async fn process_startup<'_, '_, '_>(
    &'_ mut self,
    request: &'_ str,
    message: Option<&'_ str>
) -> Result<(), Error>
[src]

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]

pub fn exit_status(&self) -> Result<i32, Error>[src]

pub fn exit_signal(&self) -> Result<ExitSignal, Error>[src]

pub fn read_window(&self) -> ReadWindow[src]

pub fn write_window(&self) -> WriteWindow[src]

pub async fn adjust_receive_window<'_>(
    &'_ mut self,
    adjust: u64,
    force: bool
) -> Result<u64, Error>
[src]

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]

Trait Implementations

impl AsyncRead for Channel[src]

impl AsyncWrite 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]

impl<R> AsyncReadExt for R where
    R: AsyncRead + ?Sized
[src]

impl<W> AsyncWriteExt for W where
    W: AsyncWrite + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.