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

Method renew_sandbox

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

Source from the content-addressed store, hash-verified

1876 }
1877
1878 pub fn renew_sandbox(
1879 &self,
1880 request: pb::RenewSandboxRequest,
1881 ) -> CliResult<pb::RenewSandboxResponse> {
1882 self.call(move |backend| async move {
1883 match backend {
1884 Backend::Local(state) => services_sandbox::SandboxImpl { state }
1885 .renew_sandbox(Request::new(request))
1886 .await
1887 .map(|response| response.into_inner()),
1888 Backend::Reactor(channel) => {
1889 let mut sandbox =
1890 pb::sandbox_service_client::SandboxServiceClient::new(channel);
1891 sandbox
1892 .renew_sandbox(request)
1893 .await
1894 .map(|response| response.into_inner())
1895 }
1896 }
1897 })
1898 }
1899
1900 pub fn close_sandbox(
1901 &self,

Callers 1

runMethod · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected