pub struct FunctionAdapter {
pub func: FrameworkAgentFunc,
pub role: String,
pub name: String,
}Fields§
§func: FrameworkAgentFunc§role: String§name: StringImplementations§
Source§impl FunctionAdapter
impl FunctionAdapter
pub fn new(func: FrameworkAgentFunc, role: &str) -> Self
pub fn map_run_spec(&self) -> State
pub fn run( &self, ctx: &mut AgentContext, state_value: State, output_key: &str, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for FunctionAdapter
impl RefUnwindSafe for FunctionAdapter
impl Send for FunctionAdapter
impl Sync for FunctionAdapter
impl Unpin for FunctionAdapter
impl UnsafeUnpin for FunctionAdapter
impl UnwindSafe for FunctionAdapter
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