pub struct MockAdapter { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Adapter for MockAdapter
impl Adapter for MockAdapter
fn name(&self) -> &str
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
node: &'life1 FlowNode,
) -> Pin<Box<dyn Future<Output = Result<NodeOutput, AdapterError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn execute_with_events<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
node: &'life1 FlowNode,
_ctx: &'life2 AdapterCtx,
) -> Pin<Box<dyn Future<Output = Result<NodeOutput, AdapterError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn execute_with_events<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
node: &'life1 FlowNode,
_ctx: &'life2 AdapterCtx,
) -> Pin<Box<dyn Future<Output = Result<NodeOutput, AdapterError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Streaming variant. Default delegates to
execute (no incremental
output). Adapters that want to push log lines while running override
this and use ctx.emit_line for each line. The shell adapter is the
first such consumer; the existing zowe / mock adapters keep the
default and continue to work unchanged.Source§fn descriptor(&self) -> AdapterDescriptor
fn descriptor(&self) -> AdapterDescriptor
Static catalog of what this adapter dispatches. Consumed by the
flow-spec-dump binary that feeds the flow-graph-generator spec compiler:
the markdown under docs/dsl/adapters/<name>.md is regenerated from
these descriptors, and the same catalog grounds the local fine-tune
and the cloud_ai system prompt. Read moreAuto Trait Implementations§
impl Freeze for MockAdapter
impl RefUnwindSafe for MockAdapter
impl Send for MockAdapter
impl Sync for MockAdapter
impl Unpin for MockAdapter
impl UnsafeUnpin for MockAdapter
impl UnwindSafe for MockAdapter
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