IntoSftpStream

Trait IntoSftpStream 

Source
pub trait IntoSftpStream {
    type Stream: AsyncRead + AsyncWrite + Unpin + Send + Sync + 'static;

    // Required method
    fn into_sftp_stream<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Stream, Error>> + Send + 'async_trait>>
       where Self: 'async_trait;
}
Expand description

Convert the object to a SSH channel

Required Associated Types§

Required Methods§

Source

fn into_sftp_stream<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Self::Stream, Error>> + Send + 'async_trait>>
where Self: 'async_trait,

Implementations on Foreign Types§

Source§

impl IntoSftpStream for ChannelStream<Msg>

Source§

type Stream = ChannelStream<Msg>

Source§

fn into_sftp_stream<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Self::Stream, Error>> + Send + 'async_trait>>
where Self: 'async_trait,

Source§

impl IntoSftpStream for Channel<Msg>

Source§

type Stream = ChannelStream<Msg>

Source§

fn into_sftp_stream<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Self::Stream, Error>> + Send + 'async_trait>>
where Self: 'async_trait,

Source§

impl<H: Handler> IntoSftpStream for &Handle<H>

Source§

type Stream = ChannelStream<Msg>

Source§

fn into_sftp_stream<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Self::Stream, Error>> + Send + 'async_trait>>
where Self: 'async_trait,

Source§

impl<H: Handler> IntoSftpStream for Handle<H>

Source§

type Stream = ChannelStream<Msg>

Source§

fn into_sftp_stream<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Self::Stream, Error>> + Send + 'async_trait>>
where Self: 'async_trait,

Implementors§