Struct time::tcp::TcpHandler
source · pub struct TcpHandler {
pub reader: BufReader<ReadHalf<TcpStream>>,
pub writer: WriteHalf<TcpStream>,
}
Available on crate feature
tcp-any
only.Expand description
The TCP stream handler struct.
Wrapper around a TCP stream reader and writer.
Fields§
§reader: BufReader<ReadHalf<TcpStream>>
The TCP stream reader.
writer: WriteHalf<TcpStream>
The TCP stream writer.
Trait Implementations§
source§impl From<TcpStream> for TcpHandler
impl From<TcpStream> for TcpHandler
source§impl RequestReader for TcpHandler
Available on crate features tcp-binder
and server
only.
impl RequestReader for TcpHandler
Available on crate features
tcp-binder
and server
only.source§impl RequestWriter for TcpHandler
Available on crate features tcp-client
and client
only.
impl RequestWriter for TcpHandler
Available on crate features
tcp-client
and client
only.source§impl ResponseReader for TcpHandler
Available on crate features tcp-client
and client
only.
impl ResponseReader for TcpHandler
Available on crate features
tcp-client
and client
only.source§impl ResponseWriter for TcpHandler
Available on crate features tcp-binder
and server
only.
impl ResponseWriter for TcpHandler
Available on crate features
tcp-binder
and server
only.Auto Trait Implementations§
impl !RefUnwindSafe for TcpHandler
impl Send for TcpHandler
impl Sync for TcpHandler
impl Unpin for TcpHandler
impl !UnwindSafe for TcpHandler
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more