pub struct TcpServer { /* private fields */ }Expand description
TCP server instance
Implementations§
Source§impl TcpServer
impl TcpServer
Sourcepub fn server_config(&self) -> &ServerConfig
pub fn server_config(&self) -> &ServerConfig
Server’s configuration
Sourcepub fn local_addr(&self) -> Result<SocketAddr>
pub fn local_addr(&self) -> Result<SocketAddr>
Server’s listen address
Auto Trait Implementations§
impl !Freeze for TcpServer
impl !RefUnwindSafe for TcpServer
impl Send for TcpServer
impl Sync for TcpServer
impl Unpin for TcpServer
impl !UnwindSafe for TcpServer
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