[][src]Enum async_ftp::DataStream

pub enum DataStream {
    Tcp(TcpStream),
}

Data Stream used for communications

Variants

Implementations

impl DataStream[src]

pub fn into_tcp_stream(self) -> TcpStream[src]

Unwrap the stream into TcpStream. This method is only used in secure connection.

pub fn is_ssl(&self) -> bool[src]

Test if the stream is secured

pub fn get_ref(&self) -> &TcpStream[src]

Returns a reference to the underlying TcpStream.

Trait Implementations

impl AsyncRead for DataStream[src]

impl AsyncWrite for DataStream[src]

impl PinnedDrop for DataStream[src]

impl<'pin> Unpin for DataStream where
    __DataStream<'pin>: Unpin
[src]

impl UnsafeUnpin for DataStream[src]

Auto Trait Implementations

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.