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 Freeze for TcpHandler
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