pub enum ResolvedExecution {
Local(Box<ResolvedAgent>),
NonLocal(ResolvedBackendAgent),
}Expand description
Unified resolved execution plan for local and non-local agents.
Variants§
Local(Box<ResolvedAgent>)
NonLocal(ResolvedBackendAgent)
Implementations§
Source§impl ResolvedExecution
impl ResolvedExecution
pub fn local(agent: ResolvedAgent) -> Self
pub fn spec(&self) -> &AgentSpec
pub fn as_local(&self) -> Option<&ResolvedAgent>
pub fn into_local(self) -> Result<ResolvedAgent, RuntimeError>
Trait Implementations§
Source§impl Clone for ResolvedExecution
impl Clone for ResolvedExecution
Source§fn clone(&self) -> ResolvedExecution
fn clone(&self) -> ResolvedExecution
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResolvedExecution
impl !RefUnwindSafe for ResolvedExecution
impl Send for ResolvedExecution
impl Sync for ResolvedExecution
impl Unpin for ResolvedExecution
impl UnsafeUnpin for ResolvedExecution
impl !UnwindSafe for ResolvedExecution
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