MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / to_u16

Function to_u16

crates/openshell-supervisor-process/src/ssh.rs:1229–1231  ·  view source on GitHub ↗
(value: u32)

Source from the content-addressed store, hash-verified

1227}
1228
1229fn to_u16(value: u32) -> u16 {
1230 u16::try_from(value.min(u32::from(u16::MAX))).unwrap_or(u16::MAX)
1231}
1232
1233/// Check whether a host string refers to a loopback address.
1234///

Callers 2

window_change_requestMethod · 0.85
spawn_pty_shellFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected