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

Method dispatch_turn_event

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

Source from the content-addressed store, hash-verified

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

Callers 1

dispatch_turn_eventFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected