MCPcopy Create free account
hub / github.com/Recordscript/recordscript / local_addr

Method local_addr

libs/hbb_common/src/udp.rs:162–169  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

160 }
161
162 pub fn local_addr(&self) -> Option<SocketAddr> {
163 if let FramedSocket::Direct(x) = self {
164 if let Ok(v) = x.get_ref().local_addr() {
165 return Some(v);
166 }
167 }
168 None
169 }
170}

Callers 1

connectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected