Whether any action in this protocol is a write or destructive action.
(&self)
| 103 | impl 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. |
no outgoing calls
no test coverage detected