pub struct UclExecutor<'a> { /* private fields */ }Expand description
UCL command executor for agent sessions.
Implementations§
Source§impl<'a> UclExecutor<'a>
impl<'a> UclExecutor<'a>
pub fn new(traversal: &'a AgentTraversal) -> Self
Sourcepub async fn execute(
&self,
session_id: &AgentSessionId,
command: Command,
) -> Result<ExecutionResult>
pub async fn execute( &self, session_id: &AgentSessionId, command: Command, ) -> Result<ExecutionResult>
Execute a UCL command.
Sourcepub async fn execute_batch(
&self,
session_id: &AgentSessionId,
commands: Vec<Command>,
) -> Result<Vec<ExecutionResult>>
pub async fn execute_batch( &self, session_id: &AgentSessionId, commands: Vec<Command>, ) -> Result<Vec<ExecutionResult>>
Execute multiple commands in sequence.
Auto Trait Implementations§
impl<'a> Freeze for UclExecutor<'a>
impl<'a> !RefUnwindSafe for UclExecutor<'a>
impl<'a> Send for UclExecutor<'a>
impl<'a> Sync for UclExecutor<'a>
impl<'a> Unpin for UclExecutor<'a>
impl<'a> !UnwindSafe for UclExecutor<'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