pub struct ChanInOut<'g>(/* private fields */);
Expand description
A standard bidirectional SSH channel
Implementations§
Trait Implementations§
Source§impl Read for ChanInOut<'_>
impl Read for ChanInOut<'_>
Source§async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error>
async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error>
Read some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Source§async fn read_exact(
&mut self,
buf: &mut [u8],
) -> Result<(), ReadExactError<Self::Error>>
async fn read_exact( &mut self, buf: &mut [u8], ) -> Result<(), ReadExactError<Self::Error>>
Read the exact number of bytes required to fill
buf
. Read moreSource§impl Write for ChanInOut<'_>
impl Write for ChanInOut<'_>
Source§async fn write(&mut self, buf: &[u8]) -> Result<usize, Error>
async fn write(&mut self, buf: &[u8]) -> Result<usize, Error>
Write a buffer into this writer, returning how many bytes were written. Read more
Auto Trait Implementations§
impl<'g> Freeze for ChanInOut<'g>
impl<'g> !RefUnwindSafe for ChanInOut<'g>
impl<'g> !Send for ChanInOut<'g>
impl<'g> !Sync for ChanInOut<'g>
impl<'g> Unpin for ChanInOut<'g>
impl<'g> !UnwindSafe for ChanInOut<'g>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more