MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / port

Method port

crates/test-programs/src/sockets.rs:339–344  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

337 }
338
339 pub const fn port(&self) -> u16 {
340 match self {
341 IpSocketAddress::Ipv4(addr) => addr.port,
342 IpSocketAddress::Ipv6(addr) => addr.port,
343 }
344 }
345
346 pub const fn family(&self) -> IpAddressFamily {
347 match self {

Callers 6

free_portFunction · 0.45
is_valid_remote_addressFunction · 0.45
fromMethod · 0.45
fromMethod · 0.45
default_send_requestFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected