pub enum AgentDispatch<T> {
Cli(T),
Printed(i32),
}Expand description
Shared parse result for agent-aware entrypoints.
Variants§
Cli(T)
Continue with the parsed CLI value.
Printed(i32)
A shared agent inspection path printed output and chose an exit code.
Trait Implementations§
Source§impl<T> Clone for AgentDispatch<T>where
T: Clone,
impl<T> Clone for AgentDispatch<T>where
T: Clone,
Source§fn clone(&self) -> AgentDispatch<T>
fn clone(&self) -> AgentDispatch<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Debug for AgentDispatch<T>where
T: Debug,
impl<T> Debug for AgentDispatch<T>where
T: Debug,
impl<T> Eq for AgentDispatch<T>where
T: Eq,
Source§impl<T> PartialEq for AgentDispatch<T>where
T: PartialEq,
impl<T> PartialEq for AgentDispatch<T>where
T: PartialEq,
Source§fn eq(&self, other: &AgentDispatch<T>) -> bool
fn eq(&self, other: &AgentDispatch<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T> StructuralPartialEq for AgentDispatch<T>
Auto Trait Implementations§
impl<T> Freeze for AgentDispatch<T>where
T: Freeze,
impl<T> RefUnwindSafe for AgentDispatch<T>where
T: RefUnwindSafe,
impl<T> Send for AgentDispatch<T>where
T: Send,
impl<T> Sync for AgentDispatch<T>where
T: Sync,
impl<T> Unpin for AgentDispatch<T>where
T: Unpin,
impl<T> UnsafeUnpin for AgentDispatch<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for AgentDispatch<T>where
T: UnwindSafe,
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