Skip to main content

execute

AsyncMethod
This is a method of the SandboxProtocol class in the sandbox module.
Execute code in the sandbox.

Signature

async def execute(
        &self,
        code: &str,
        language: &str,
        limits: Option<ResourceLimits>,
        env: Option<HashMap<String, String>>,
        working_dir: Option<String>,
    ) -> Result<SandboxResult>

Parameters

code
&str
required
No description available.
language
&str
required
No description available.
limits
Option<ResourceLimits>
required
No description available.
env
Option<HashMap<String
required
No description available.
working_dir
Option<String>
required
No description available.

Returns

Returns
Result<SandboxResult>
The result of the operation.