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

Method switch_view

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

Source from the content-addressed store, hash-verified

1615 }
1616
1617 pub fn switch_view(&self, request: pb::SwitchViewRequest) -> CliResult<pb::SwitchViewResponse> {
1618 self.call(move |backend| async move {
1619 match backend {
1620 Backend::Local(state) => services_query::ViewImpl { state }
1621 .switch_view(Request::new(request))
1622 .await
1623 .map(|response| response.into_inner()),
1624 Backend::Reactor(channel) => {
1625 let mut views = pb::view_service_client::ViewServiceClient::new(channel);
1626 views
1627 .switch_view(request)
1628 .await
1629 .map(|response| response.into_inner())
1630 }
1631 }
1632 })
1633 }
1634
1635 pub fn delete_view(&self, request: pb::DeleteViewRequest) -> CliResult<pb::DeleteViewResponse> {
1636 self.call(move |backend| async move {

Callers 15

runMethod · 0.45
view_switchFunction · 0.45
view_switch_plainFunction · 0.45
splitFunction · 0.45
switch_transactionFunction · 0.45
maybe_switchMethod · 0.45
run_two_tierMethod · 0.45
maybe_switchMethod · 0.45
runMethod · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45