MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / tcp_addr

Method tcp_addr

src/pglite/server.rs:67–73  ·  view source on GitHub ↗

Return the bound TCP address, if this server is using TCP.

(&self)

Source from the content-addressed store, hash-verified

65
66 /// Return the bound TCP address, if this server is using TCP.
67 pub fn tcp_addr(&self) -> Option<SocketAddr> {
68 match self.endpoint {
69 ServerEndpoint::Tcp(addr) => Some(addr),
70 #[cfg(unix)]
71 ServerEndpoint::Unix(_) => None,
72 }
73 }
74
75 /// Return the Unix-domain socket path, if this server is using UDS.
76 #[cfg(unix)]

Calls

no outgoing calls

Tested by

no test coverage detected