pub struct NativeSandbox { /* private fields */ }Implementations§
Source§impl NativeSandbox
impl NativeSandbox
pub fn new(config: SandboxConfig) -> Self
pub fn permissive() -> Self
Trait Implementations§
Source§impl Default for NativeSandbox
impl Default for NativeSandbox
Source§impl Sandbox for NativeSandbox
impl Sandbox for NativeSandbox
fn config(&self) -> &SandboxConfig
fn check_tool(&self, tool: &dyn Tool) -> Result<()>
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
tool: Arc<dyn Tool>,
ctx: &'life1 Context,
input: Value,
) -> Pin<Box<dyn Future<Output = Result<ToolOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for NativeSandbox
impl RefUnwindSafe for NativeSandbox
impl Send for NativeSandbox
impl Sync for NativeSandbox
impl Unpin for NativeSandbox
impl UnwindSafe for NativeSandbox
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more