Connect to whatever serves the daemon socket — never starting one: a remote sandbox has no daemon of its own to start.
(token: Option<&[u8]>)
| 139 | /// Connect to whatever serves the daemon socket — never starting one: a |
| 140 | /// remote sandbox has no daemon of its own to start. |
| 141 | pub async fn connect(token: Option<&[u8]>) -> Result<SandboxChannel, String> { |
| 142 | let client = atomic_client::AtomicClient::connect_existing().await?; |
| 143 | Ok(InterceptedService::new( |
| 144 | client.channel, |
| 145 | TokenInterceptor::new(token), |
| 146 | )) |
| 147 | } |
| 148 | |
| 149 | fn sandbox_client( |
| 150 | channel: SandboxChannel, |
no outgoing calls