MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / possible_values

Method possible_values

crates/hyperqueue/src/client/commands/worker.rs:200–212  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

198 }
199
200 fn possible_values(&self) -> Option<Box<dyn Iterator<Item = PossibleValue> + '_>> {
201 let values = ResourceDetectComponent::value_variants()
202 .iter()
203 .filter_map(|v| v.to_possible_value());
204 Some(Box::new(
205 [
206 PossibleValue::new("all").help("Detect all known resources"),
207 PossibleValue::new("none").help("Do not detect any resources"),
208 ]
209 .into_iter()
210 .chain(values),
211 ))
212 }
213}
214
215/// A single resource type that can be detected from the worker environment

Callers

nothing calls this directly

Calls 2

iterMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected