(&self)
| 183 | #[async_trait] |
| 184 | impl LaneCommand for SessionCommandAdapter { |
| 185 | async fn execute(&self) -> LaneResult<Value> { |
| 186 | match self.handler_mode { |
| 187 | TaskHandlerMode::Internal => self |
| 188 | .inner |
| 189 | .execute() |
| 190 | .await |
| 191 | .map_err(|e| LaneError::CommandError(e.to_string())), |
| 192 | TaskHandlerMode::External => self.register_and_wait().await, |
| 193 | TaskHandlerMode::Hybrid => self.execute_with_notification().await, |
| 194 | } |
| 195 | } |
| 196 | fn command_type(&self) -> &str { |
| 197 | self.inner.command_type() |
| 198 | } |
no test coverage detected