Trait ureq::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§