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

Method from_ip_str

crates/openshell-ocsf/src/objects/endpoint.rs:49–55  ·  view source on GitHub ↗
(addr: &str, port: u16)

Source from the content-addressed store, hash-verified

47 /// Create an endpoint from an IP string and port.
48 #[must_use]
49 pub fn from_ip_str(addr: &str, port: u16) -> Self {
50 Self {
51 domain: None,
52 ip: Some(addr.to_string()),
53 port: Some(port),
54 }
55 }
56
57 /// Returns the domain or IP for display purposes.
58 #[must_use]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected