pub struct AgentFlow<A: Agent> { /* private fields */ }Expand description
Adapter wrapping a concrete Agent into a Flow by JSON-marshalling
at the I/O boundary.
This is parameterised on a concrete A: Agent + 'static, not
dyn Agent — the latter is impossible because Agent has associated
types. Each AgentFlow<A> is a distinct type, but each implements
Flow so callers can hold them as Arc<dyn Flow>.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for AgentFlow<A>
impl<A> RefUnwindSafe for AgentFlow<A>where
A: RefUnwindSafe,
impl<A> Send for AgentFlow<A>
impl<A> Sync for AgentFlow<A>
impl<A> Unpin for AgentFlow<A>
impl<A> UnsafeUnpin for AgentFlow<A>
impl<A> UnwindSafe for AgentFlow<A>where
A: RefUnwindSafe,
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