|
|
@ -381,6 +381,7 @@ where |
|
|
|
#[cfg(test)] |
|
|
|
#[cfg(test)] |
|
|
|
mod tests { |
|
|
|
mod tests { |
|
|
|
use crate::compat::AllowStd; |
|
|
|
use crate::compat::AllowStd; |
|
|
|
|
|
|
|
#[cfg(feature="connect")] |
|
|
|
use crate::connect::encryption::AutoStream; |
|
|
|
use crate::connect::encryption::AutoStream; |
|
|
|
use crate::WebSocketStream; |
|
|
|
use crate::WebSocketStream; |
|
|
|
use std::io::{Read, Write}; |
|
|
|
use std::io::{Read, Write}; |
|
|
@ -397,10 +398,13 @@ mod tests { |
|
|
|
is_read::<AllowStd<async_std::net::TcpStream>>(); |
|
|
|
is_read::<AllowStd<async_std::net::TcpStream>>(); |
|
|
|
is_write::<AllowStd<async_std::net::TcpStream>>(); |
|
|
|
is_write::<AllowStd<async_std::net::TcpStream>>(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#[cfg(feature="connect")] |
|
|
|
is_async_read::<AutoStream<async_std::net::TcpStream>>(); |
|
|
|
is_async_read::<AutoStream<async_std::net::TcpStream>>(); |
|
|
|
|
|
|
|
#[cfg(feature="connect")] |
|
|
|
is_async_write::<AutoStream<async_std::net::TcpStream>>(); |
|
|
|
is_async_write::<AutoStream<async_std::net::TcpStream>>(); |
|
|
|
|
|
|
|
|
|
|
|
is_unpin::<WebSocketStream<async_std::net::TcpStream>>(); |
|
|
|
is_unpin::<WebSocketStream<async_std::net::TcpStream>>(); |
|
|
|
|
|
|
|
#[cfg(feature="connect")] |
|
|
|
is_unpin::<WebSocketStream<AutoStream<async_std::net::TcpStream>>>(); |
|
|
|
is_unpin::<WebSocketStream<AutoStream<async_std::net::TcpStream>>>(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|