TODO(database-issues#7533): Add documentation.
(&self, command: &ComputeCommand)
| 544 | |
| 545 | /// TODO(database-issues#7533): Add documentation. |
| 546 | pub fn for_command(&self, command: &ComputeCommand) -> &M { |
| 547 | use ComputeCommand::*; |
| 548 | |
| 549 | match command { |
| 550 | Hello { .. } => &self.hello, |
| 551 | CreateInstance(_) => &self.create_instance, |
| 552 | InitializationComplete => &self.initialization_complete, |
| 553 | UpdateConfiguration(_) => &self.update_configuration, |
| 554 | CreateDataflow(_) => &self.create_dataflow, |
| 555 | Schedule(_) => &self.schedule, |
| 556 | AllowCompaction { .. } => &self.allow_compaction, |
| 557 | Peek(_) => &self.peek, |
| 558 | CancelPeek { .. } => &self.cancel_peek, |
| 559 | AllowWrites { .. } => &self.allow_writes, |
| 560 | } |
| 561 | } |
| 562 | } |
| 563 | |
| 564 | /// Metrics keyed by `ComputeResponse` type. |
no outgoing calls
no test coverage detected