pub struct Registry<'a> { /* private fields */ }Expand description
Human catalog only. Claimant authorization belongs to the request lifecycle.
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 list(&self) -> impl Iterator<Item = &ToolDefinition>
pub fn is_command(&self, name: &ToolName) -> bool
pub fn preflight(&self, name: &ToolName) -> Result<(), String>
Sourcepub fn command(&self, name: &ToolName) -> Result<CommandLine, String>
pub fn command(&self, name: &ToolName) -> Result<CommandLine, String>
Resolve the command line a call would run, without running it.
pub async fn call( &self, name: &ToolName, cancellation: CancellationToken, ) -> ToolResult
Sourcepub async fn call_logged(
&self,
name: &ToolName,
cancellation: CancellationToken,
run: Run,
) -> ToolResult
pub async fn call_logged( &self, name: &ToolName, cancellation: CancellationToken, run: Run, ) -> ToolResult
Run tool name, its output reaching run’s Tool log while it runs, and end the run:
a launched program’s when it exits.
Auto Trait Implementations§
impl<'a> Freeze for Registry<'a>
impl<'a> RefUnwindSafe 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>
impl<'a> UnwindSafe 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