pub struct CodeModeBroker<'a, H: CodeModeHost> { /* private fields */ }Implementations§
Source§impl<'a, H: CodeModeHost> CodeModeBroker<'a, H>
impl<'a, H: CodeModeHost> CodeModeBroker<'a, H>
pub fn new(host: Option<&'a H>) -> Self
pub async fn execute( &self, code: &str, caller: CodeModeCaller, surface: CodeModeSurface, config: CodeModeConfig, scope: ToolScope, execution_id: Option<Arc<str>>, ) -> Result<CodeModeExecutionResponse, ToolError>
pub async fn execute_with_raw_response( &self, code: &str, caller: CodeModeCaller, surface: CodeModeSurface, config: CodeModeConfig, scope: ToolScope, execution_id: Option<Arc<str>>, ) -> Result<CodeModeExecutionOutcome, ToolError>
Auto Trait Implementations§
impl<'a, H> !Freeze for CodeModeBroker<'a, H>
impl<'a, H> !RefUnwindSafe for CodeModeBroker<'a, H>
impl<'a, H> Send for CodeModeBroker<'a, H>
impl<'a, H> Sync for CodeModeBroker<'a, H>
impl<'a, H> Unpin for CodeModeBroker<'a, H>
impl<'a, H> UnsafeUnpin for CodeModeBroker<'a, H>
impl<'a, H> !UnwindSafe for CodeModeBroker<'a, H>
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