pub struct AdapterCtx {
pub events: Arc<dyn EventSink>,
pub execution_id: String,
pub node_id: String,
pub workspace_root: PathBuf,
}Expand description
Per-invocation context passed to streaming-capable adapters. Carries the
sink the adapter can use to emit NodeLog events as work happens, plus
identifiers so those events can be routed back to the right node.
Fields§
§events: Arc<dyn EventSink>§execution_id: String§node_id: String§workspace_root: PathBufResolved per-run workspace root. Adapters use it as the default cwd
(shell / cli) or workspaceRoot (fs) when the node sets none.
Implementations§
Auto Trait Implementations§
impl Freeze for AdapterCtx
impl !RefUnwindSafe for AdapterCtx
impl Send for AdapterCtx
impl Sync for AdapterCtx
impl Unpin for AdapterCtx
impl UnsafeUnpin for AdapterCtx
impl !UnwindSafe for AdapterCtx
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