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

Method as_str

vmm/src/config.rs:101–106  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

99
100impl Protocol {
101 pub fn as_str(&self) -> &str {
102 match self {
103 Protocol::Tcp => "tcp",
104 Protocol::Udp => "udp",
105 }
106 }
107}
108
109#[derive(Debug, Clone, Deserialize, Serialize)]

Callers 15

containsMethod · 0.45
resolve_gpusFunction · 0.45
networking_from_protoFunction · 0.45
to_pbMethod · 0.45
config_qemuMethod · 0.45
parse_vsock_hostFunction · 0.45
resolve_zone_idMethod · 0.45
computeMethod · 0.45
query_field_get_rawFunction · 0.45
spec_jsonMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected