pub struct TcpBind {
pub host: String,
pub port: u16,
}
Available on crate features
server
and tcp-binder
only.Expand description
The TCP server binder.
This ServerBind
er uses the TCP protocol to bind a listener, to
read requests and write responses.
Fields§
§host: String
The TCP host of the listener.
port: u16
The TCP port of the listener.
Implementations§
Trait Implementations§
Source§impl ServerBind for TcpBind
impl ServerBind for TcpBind
impl Eq for TcpBind
impl StructuralPartialEq for TcpBind
Auto Trait Implementations§
impl Freeze for TcpBind
impl RefUnwindSafe for TcpBind
impl Send for TcpBind
impl Sync for TcpBind
impl Unpin for TcpBind
impl UnwindSafe for TcpBind
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