[−][src]Struct async_ssh2_lite::AsyncChannel
Implementations
impl<S> AsyncChannel<S>
[src]
pub async fn setenv<'_, '_, '_>(
&'_ mut self,
var: &'_ str,
val: &'_ str
) -> Result<()>
[src]
&'_ mut self,
var: &'_ str,
val: &'_ str
) -> Result<()>
pub async fn request_pty<'_, '_>(
&'_ mut self,
term: &'_ str,
mode: Option<PtyModes>,
dim: Option<(u32, u32, u32, u32)>
) -> Result<()>
[src]
&'_ mut self,
term: &'_ str,
mode: Option<PtyModes>,
dim: Option<(u32, u32, u32, u32)>
) -> Result<()>
pub async fn request_pty_size<'_>(
&'_ mut self,
width: u32,
height: u32,
width_px: Option<u32>,
height_px: Option<u32>
) -> Result<()>
[src]
&'_ mut self,
width: u32,
height: u32,
width_px: Option<u32>,
height_px: Option<u32>
) -> Result<()>
pub async fn request_auth_agent_forwarding<'_>(&'_ mut self) -> Result<()>
[src]
pub async fn exec<'_, '_>(&'_ mut self, command: &'_ str) -> Result<()>
[src]
pub async fn shell<'_>(&'_ mut self) -> Result<()>
[src]
pub async fn subsystem<'_, '_>(&'_ mut self, system: &'_ str) -> Result<()>
[src]
pub async fn process_startup<'_, '_, '_>(
&'_ mut self,
request: &'_ str,
message: Option<&'_ str>
) -> Result<()>
[src]
&'_ mut self,
request: &'_ str,
message: Option<&'_ str>
) -> Result<()>
pub fn stderr(&self) -> AsyncStream<S>
[src]
pub fn stream(&self, stream_id: i32) -> AsyncStream<S>
[src]
pub async fn handle_extended_data<'_>(
&'_ mut self,
mode: ExtendedData
) -> Result<()>
[src]
&'_ mut self,
mode: ExtendedData
) -> Result<()>
pub fn exit_status(&self) -> Result<i32>
[src]
pub async fn exit_signal<'_>(&'_ self) -> Result<ExitSignal>
[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>
[src]
&'_ mut self,
adjust: u64,
force: bool
) -> Result<u64>
pub fn eof(&self) -> bool
[src]
pub async fn send_eof<'_>(&'_ mut self) -> Result<()>
[src]
pub async fn wait_eof<'_>(&'_ mut self) -> Result<()>
[src]
pub async fn close<'_>(&'_ mut self) -> Result<()>
[src]
pub async fn wait_close<'_>(&'_ mut self) -> Result<()>
[src]
Trait Implementations
impl<S> AsyncRead for AsyncChannel<S>
[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<S> AsyncWrite for AsyncChannel<S>
[src]
fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context,
buf: &[u8]
) -> Poll<Result<usize>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
buf: &[u8]
) -> Poll<Result<usize>>
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<S> !RefUnwindSafe for AsyncChannel<S>
impl<S> Send for AsyncChannel<S> where
S: Send + Sync,
S: Send + Sync,
impl<S> Sync for AsyncChannel<S> where
S: Send + Sync,
S: Send + Sync,
impl<S> Unpin for AsyncChannel<S>
impl<S> !UnwindSafe for AsyncChannel<S>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<R> AsyncReadExt for R where
R: AsyncRead + ?Sized,
R: AsyncRead + ?Sized,
fn read(&'a mut self, buf: &'a mut [u8]) -> ReadFuture<'a, Self> where
Self: Unpin,
Self: Unpin,
fn read_vectored(
&'a mut self,
bufs: &'a mut [IoSliceMut<'a>]
) -> ReadVectoredFuture<'a, Self> where
Self: Unpin,
&'a mut self,
bufs: &'a mut [IoSliceMut<'a>]
) -> ReadVectoredFuture<'a, Self> where
Self: Unpin,
fn read_to_end(&'a mut self, buf: &'a mut Vec<u8>) -> ReadToEndFuture<'a, Self> where
Self: Unpin,
Self: Unpin,
fn read_to_string(
&'a mut self,
buf: &'a mut String
) -> ReadToStringFuture<'a, Self> where
Self: Unpin,
&'a mut self,
buf: &'a mut String
) -> ReadToStringFuture<'a, Self> where
Self: Unpin,
fn read_exact(&'a mut self, buf: &'a mut [u8]) -> ReadExactFuture<'a, Self> where
Self: Unpin,
Self: Unpin,
fn take(self, limit: u64) -> Take<Self>
fn bytes(self) -> Bytes<Self>
fn chain<R>(self, next: R) -> Chain<Self, R> where
R: AsyncRead,
R: AsyncRead,
impl<R> AsyncWriteExt for R where
R: AsyncWrite + ?Sized,
R: AsyncWrite + ?Sized,
fn write(&'a mut self, buf: &'a [u8]) -> WriteFuture<'a, Self> where
Self: Unpin,
Self: Unpin,
fn write_vectored(
&'a mut self,
bufs: &'a [IoSlice<'a>]
) -> WriteVectoredFuture<'a, Self> where
Self: Unpin,
&'a mut self,
bufs: &'a [IoSlice<'a>]
) -> WriteVectoredFuture<'a, Self> where
Self: Unpin,
fn write_all(&'a mut self, buf: &'a [u8]) -> WriteAllFuture<'a, Self> where
Self: Unpin,
Self: Unpin,
fn flush(&mut self) -> FlushFuture<Self> where
Self: Unpin,
Self: Unpin,
fn close(&mut self) -> CloseFuture<Self> where
Self: Unpin,
Self: Unpin,
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>,