pub struct TcpListener {
pub bind_address: String,
pub port: u16,
}Fields§
§bind_address: String§port: u16Trait Implementations§
Source§impl Clone for TcpListener
impl Clone for TcpListener
Source§impl Debug for TcpListener
impl Debug for TcpListener
Source§impl<'de> Deserialize<'de> for TcpListener
impl<'de> Deserialize<'de> for TcpListener
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 TcpListener
Source§impl Ord for TcpListener
impl Ord for TcpListener
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TcpListener
impl PartialEq for TcpListener
Source§impl PartialOrd for TcpListener
impl PartialOrd for TcpListener
Source§impl Serialize for TcpListener
impl Serialize for TcpListener
impl StructuralPartialEq for TcpListener
Auto Trait Implementations§
impl Freeze for TcpListener
impl RefUnwindSafe for TcpListener
impl Send for TcpListener
impl Sync for TcpListener
impl Unpin for TcpListener
impl UnsafeUnpin for TcpListener
impl UnwindSafe for TcpListener
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