MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / init

Function init

tests/net/main.rs:52–55  ·  view source on GitHub ↗

Checks whether the Windows socket interface has been started already, and if not, starts it.

()

Source from the content-addressed store, hash-verified

50/// Checks whether the Windows socket interface has been started already, and
51/// if not, starts it.
52pub fn init() {
53 #[cfg(windows)]
54 let _ = windows::CLEANUP.get_or_init(|| windows::Thing::new());
55}

Callers 15

test_sockopts_ipv4Function · 0.70
test_sockopts_ipv6Function · 0.70
test_socket_passcredFunction · 0.70
test_socketopts_ip_mtuFunction · 0.70
test_socketopts_ipv6_mtuFunction · 0.70
test_ip_mtu_discoverFunction · 0.70
test_sockopts_txtimeFunction · 0.70
test_unixFunction · 0.70
test_unix_msgFunction · 0.70

Calls

no outgoing calls

Tested by 15

test_sockopts_ipv4Function · 0.56
test_sockopts_ipv6Function · 0.56
test_socket_passcredFunction · 0.56
test_socketopts_ip_mtuFunction · 0.56
test_socketopts_ipv6_mtuFunction · 0.56
test_ip_mtu_discoverFunction · 0.56
test_sockopts_txtimeFunction · 0.56
test_unixFunction · 0.56
test_unix_msgFunction · 0.56