ureq

Trait ReadWrite

Source
pub trait ReadWrite:
    Read
    + Write
    + Send
    + Sync
    + Debug
    + 'static {
    // Required method
    fn socket(&self) -> Option<&TcpStream>;
}
Expand description

Trait for things implementing std::io::Read + std::io::Write. Used in TlsConnector.

Required Methods§

Implementations on Foreign Types§

Source§

impl ReadWrite for TcpStream

Source§

impl ReadWrite for TlsStream<Box<dyn ReadWrite>>

Available on crate feature native-tls only.
Source§

impl<T: ReadWrite + ?Sized> ReadWrite for Box<T>

Implementors§