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

Method len

port-forward/src/lib.rs:110–112  ·  view source on GitHub ↗

Number of active rules.

(&self)

Source from the content-addressed store, hash-verified

108
109 /// Number of active rules.
110 pub fn len(&self) -> usize {
111 self.rules.len()
112 }
113
114 pub fn is_empty(&self) -> bool {
115 self.rules.is_empty()

Callers 15

sealFunction · 0.45
open_sealed_boxFunction · 0.45
from_bytesMethod · 0.45
with_report_dataMethod · 0.45
deserializeFunction · 0.45
parse_spec_id_event_logFunction · 0.45
try_fromMethod · 0.45
onboardMethod · 0.45
send_requestFunction · 0.45
load_vmMethod · 0.45
load_or_update_vmMethod · 0.45

Calls

no outgoing calls

Tested by 2

from_bytesMethod · 0.36