pub struct Registry<'a> { /* private fields */ }Expand description
Borrows the resolved declarations; discovery and listing never execute owner code. Calls own their temporary directories, leaving the caller’s output root intact.
Implementations§
Source§impl<'a> Registry<'a>
impl<'a> Registry<'a>
pub fn new(config: &'a RepoConfig, eval_id: &str) -> Result<Self, String>
pub fn for_artifact( config: &'a RepoConfig, artifact_id: &str, ) -> Result<Self, String>
pub fn with_sessions(self, sessions: &'a Sessions) -> Self
pub fn list(&self) -> impl Iterator<Item = &ToolDefinition>
Sourcepub fn preflight(&self, name: &str) -> Result<(), String>
pub fn preflight(&self, name: &str) -> Result<(), String>
Resolve static prerequisites without substituting free arguments.
pub async fn call( &self, name: &str, args: Value, output_root: &Path, cancellation: CancellationToken, ) -> ToolResult
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Registry<'a>
impl<'a> !UnwindSafe for Registry<'a>
impl<'a> Freeze for Registry<'a>
impl<'a> Send for Registry<'a>
impl<'a> Sync for Registry<'a>
impl<'a> Unpin for Registry<'a>
impl<'a> UnsafeUnpin for Registry<'a>
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