Skip to main content

SandboxFallbackHandler

Trait SandboxFallbackHandler 

Source
pub trait SandboxFallbackHandler: Send + Sync {
    // Required method
    fn request_fallback<'life0, 'async_trait>(
        &'life0 self,
        context: SandboxFallbackContext,
    ) -> Pin<Box<dyn Future<Output = SandboxFallbackDecision> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Resolves typed sandbox fallback requests independently of normal tool permission approval.

Required Methods§

Source

fn request_fallback<'life0, 'async_trait>( &'life0 self, context: SandboxFallbackContext, ) -> Pin<Box<dyn Future<Output = SandboxFallbackDecision> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Decides whether this one fallback invocation may proceed.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§