pub struct ChanIn<'g>(/* private fields */);Expand description
An input-only SSH channel.
This is used as stderr for a client.
This must be read, otherwise the SSH session will block.
Alternatively drop this ChanIn and incoming data will be discarded.
Clone is implemented for convenience, but only one instance each
should be read from.
Otherwise ordering will be arbitrary, and if competing readers or writers
are in different tasks, there will be churn as they continually wake
each other up. Simultaneous single-reader and single-writer is fine.
Implementations§
Trait Implementations§
Source§impl Read for ChanIn<'_>
impl Read for ChanIn<'_>
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 moreAuto Trait Implementations§
impl<'g> !RefUnwindSafe for ChanIn<'g>
impl<'g> !Send for ChanIn<'g>
impl<'g> !Sync for ChanIn<'g>
impl<'g> !UnwindSafe for ChanIn<'g>
impl<'g> Freeze for ChanIn<'g>
impl<'g> Unpin for ChanIn<'g>
impl<'g> UnsafeUnpin for ChanIn<'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