MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / dispatch_turn_event

Method dispatch_turn_event

atomic-cli/src/service/mod.rs:1337–1357  ·  view source on GitHub ↗
(
        &self,
        request: pb::DispatchTurnEventRequest,
    )

Source from the content-addressed store, hash-verified

1335
1336impl Service {
1337 pub fn dispatch_turn_event(
1338 &self,
1339 request: pb::DispatchTurnEventRequest,
1340 ) -> CliResult<pb::DispatchTurnEventResponse> {
1341 self.call(move |backend| async move {
1342 match backend {
1343 Backend::Local(state) => services_agent::ProvenanceImpl { state }
1344 .dispatch_turn_event(Request::new(request))
1345 .await
1346 .map(|response| response.into_inner()),
1347 Backend::Reactor(channel) => {
1348 let mut provenance =
1349 pb::provenance_service_client::ProvenanceServiceClient::new(channel);
1350 provenance
1351 .dispatch_turn_event(request)
1352 .await
1353 .map(|response| response.into_inner())
1354 }
1355 }
1356 })
1357 }
1358
1359 pub fn append_hook_log(
1360 &self,

Callers 1

dispatch_turn_eventFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected