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

Method can_write

crates/openshell-prover/src/registry.rs:105–109  ·  view source on GitHub ↗

Whether any action in this protocol is a write or destructive action.

(&self)

Source from the content-addressed store, hash-verified

103impl BinaryProtocol {
104 /// Whether any action in this protocol is a write or destructive action.
105 pub fn can_write(&self) -> bool {
106 self.actions
107 .iter()
108 .any(|a| matches!(a.action_type, ActionType::Write | ActionType::Destructive))
109 }
110}
111
112/// Capability descriptor for a single binary.

Callers 2

write_mechanismsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected