pub struct OpenCode;Expand description
OpenCode (opencode).
Trait Implementations§
impl Copy for OpenCode
Source§impl Harness for OpenCode
impl Harness for OpenCode
Source§fn hook_events(&self) -> &[Event]
fn hook_events(&self) -> &[Event]
Every event but one: no session end.
Source§fn id(&self) -> &str
fn id(&self) -> &str
The harness’s id, e.g.
claude: the name users give, and {harness}
in a hook command.Source§fn program(&self) -> Option<&str>
fn program(&self) -> Option<&str>
The program that runs the harness, e.g.
claude, looked for on
PATH to tell whether the user has it; None when it has none.Source§fn claude_tool(&self, call: &ToolCall) -> ToolCall
fn claude_tool(&self, call: &ToolCall) -> ToolCall
call, one of its tool calls, as Claude Code would name it and give
its input (KIT-11_AC-9). By default, named by its kind.Source§fn render(&self, integration: &Integration, cx: &Context) -> Result<Vec<Part>>
fn render(&self, integration: &Integration, cx: &Context) -> Result<Vec<Part>>
The parts for
integration’s items at cx, at most one per item,
each named by its item (Item::as_str). An item the harness
cannot take at the scope has no part.Source§fn reads(&self, item: Item, cx: &Context) -> Result<Reads>
fn reads(&self, item: Item, cx: &Context) -> Result<Reads>
The locations it loads for
item at cx: those it always loads
(which must include where it renders the item) and those it may
load.Auto Trait Implementations§
impl Freeze for OpenCode
impl RefUnwindSafe for OpenCode
impl Send for OpenCode
impl Sync for OpenCode
impl Unpin for OpenCode
impl UnsafeUnpin for OpenCode
impl UnwindSafe for OpenCode
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