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

Method open_sandbox

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

Source from the content-addressed store, hash-verified

1854
1855impl Service {
1856 pub fn open_sandbox(
1857 &self,
1858 request: pb::OpenSandboxRequest,
1859 ) -> CliResult<pb::OpenSandboxResponse> {
1860 self.call(move |backend| async move {
1861 match backend {
1862 Backend::Local(state) => services_sandbox::SandboxImpl { state }
1863 .open_sandbox(Request::new(request))
1864 .await
1865 .map(|response| response.into_inner()),
1866 Backend::Reactor(channel) => {
1867 let mut sandbox =
1868 pb::sandbox_service_client::SandboxServiceClient::new(channel);
1869 sandbox
1870 .open_sandbox(request)
1871 .await
1872 .map(|response| response.into_inner())
1873 }
1874 }
1875 })
1876 }
1877
1878 pub fn renew_sandbox(
1879 &self,

Callers 1

runMethod · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected