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

Method call

atomic-cli/src/service/mod.rs:236–243  ·  view source on GitHub ↗

Drive one service exchange on the session's runtime, mapping the transport/domain status to the CLI's error vocabulary.

(&self, exchange: F)

Source from the content-addressed store, hash-verified

234 /// Drive one service exchange on the session's runtime, mapping the
235 /// transport/domain status to the CLI's error vocabulary.
236 fn call<T, F, Fut>(&self, exchange: F) -> CliResult<T>
237 where
238 F: FnOnce(Backend) -> Fut,
239 Fut: std::future::Future<Output = Result<T, Status>>,
240 {
241 let backend = self.backend();
242 self.rt.block_on(exchange(backend)).map_err(status_message)
243 }
244
245 /// The mode this session was opened in (the journal sink and other
246 /// mode-aware components ask).

Callers 15

compact_databaseMethod · 0.45
statusMethod · 0.45
logMethod · 0.45
get_changeMethod · 0.45
diff_working_copyMethod · 0.45
diffMethod · 0.45
list_conflictsMethod · 0.45
preview_mutationMethod · 0.45
preview_restoreMethod · 0.45
add_filesMethod · 0.45
recordMethod · 0.45

Calls 2

exchangeFunction · 0.85
backendMethod · 0.80

Tested by

no test coverage detected