pub struct TcpConfig {
pub host: String,
pub port: u16,
}
Available on crate feature
tcp-any
only.Expand description
The TCP shared configuration between clients and servers.
Fields§
§host: String
The TCP host name.
port: u16
The TCP port.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TcpConfig
impl<'de> Deserialize<'de> for TcpConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TcpConfig
impl StructuralPartialEq for TcpConfig
Auto Trait Implementations§
impl Freeze for TcpConfig
impl RefUnwindSafe for TcpConfig
impl Send for TcpConfig
impl Sync for TcpConfig
impl Unpin for TcpConfig
impl UnwindSafe for TcpConfig
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