MCPcopy Create free account
hub / github.com/bitdriftlabs/pulse / local_addr

Method local_addr

pulse-common/src/bind_resolver.rs:33–35  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

31
32 #[must_use]
33 pub fn local_addr(&self) -> SocketAddr {
34 self.socket.local_addr().expect("socket is bound")
35 }
36}
37
38// Trait for resolver a name to a listener. Used for test injection of sockets bound to port 0.

Callers 5

local_tcp_addrMethod · 0.80
take_udp_addrMethod · 0.80
resolve_tcpMethod · 0.80
resolve_udpMethod · 0.80
startMethod · 0.80

Calls

no outgoing calls

Tested by 5

local_tcp_addrMethod · 0.64
take_udp_addrMethod · 0.64
resolve_tcpMethod · 0.64
resolve_udpMethod · 0.64
startMethod · 0.64