pub struct HttpAgent { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<StateT: AgentState, FwdPropsT: FwdProps> Agent<StateT, FwdPropsT> for HttpAgent
impl<StateT: AgentState, FwdPropsT: FwdProps> Agent<StateT, FwdPropsT> for HttpAgent
fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 RunAgentInput<StateT, FwdPropsT>,
) -> Pin<Box<dyn Future<Output = Result<BoxStream<'async_trait, Result<Event<StateT>, AgentError>>, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn run_agent<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 RunAgentParams<StateT, FwdPropsT>,
subscribers: impl 'async_trait + IntoSubscribers<StateT, FwdPropsT>,
) -> Pin<Box<dyn Future<Output = Result<RunAgentResult<StateT>, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn run_agent<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 RunAgentParams<StateT, FwdPropsT>,
subscribers: impl 'async_trait + IntoSubscribers<StateT, FwdPropsT>,
) -> Pin<Box<dyn Future<Output = Result<RunAgentResult<StateT>, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The main execution method, containing the full pipeline logic.
Auto Trait Implementations§
impl Freeze for HttpAgent
impl !RefUnwindSafe for HttpAgent
impl Send for HttpAgent
impl Sync for HttpAgent
impl Unpin for HttpAgent
impl !UnwindSafe for HttpAgent
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