MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / contains

Method contains

vmm/src/config.rs:117–119  ·  view source on GitHub ↗
(&self, protocol: &str, port: u16)

Source from the content-addressed store, hash-verified

115
116impl PortRange {
117 pub fn contains(&self, protocol: &str, port: u16) -> bool {
118 self.protocol.as_str() == protocol && port >= self.from && port <= self.to
119 }
120}
121
122#[derive(Debug, Clone, Deserialize)]

Callers 15

check_one_logMethod · 0.80
is_allowedMethod · 0.80
list_devicesMethod · 0.80
load_vmMethod · 0.80
reload_vmsMethod · 0.80
load_or_update_vmMethod · 0.80
list_vmsMethod · 0.80
run_one_shotFunction · 0.80
resolve_gpusFunction · 0.80

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected