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

Method close_sandbox

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

Source from the content-addressed store, hash-verified

1898 }
1899
1900 pub fn close_sandbox(
1901 &self,
1902 request: pb::CloseSandboxRequest,
1903 ) -> CliResult<pb::CloseSandboxResponse> {
1904 self.call(move |backend| async move {
1905 match backend {
1906 Backend::Local(state) => services_sandbox::SandboxImpl { state }
1907 .close_sandbox(Request::new(request))
1908 .await
1909 .map(|response| response.into_inner()),
1910 Backend::Reactor(channel) => {
1911 let mut sandbox =
1912 pb::sandbox_service_client::SandboxServiceClient::new(channel);
1913 sandbox
1914 .close_sandbox(request)
1915 .await
1916 .map(|response| response.into_inner())
1917 }
1918 }
1919 })
1920 }
1921
1922 pub fn create_sandbox_tree(
1923 &self,

Callers 1

runMethod · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected