pub struct OrcaBackend { /* private fields */ }Implementations§
Source§impl OrcaBackend
impl OrcaBackend
Sourcepub fn new(runner: Arc<dyn Runner>) -> Self
pub fn new(runner: Arc<dyn Runner>) -> Self
Orca backend with the client default policy: tabs land flat in the worktree the supervisor’s tab lives in.
Sourcepub fn with_policy(runner: Arc<dyn Runner>, policy: WorktreePolicy) -> Self
pub fn with_policy(runner: Arc<dyn Runner>, policy: WorktreePolicy) -> Self
Orca backend with an explicit worktree policy, reading the host worktree from the process environment.
Sourcepub fn with_host_worktree(
runner: Arc<dyn Runner>,
policy: WorktreePolicy,
host_worktree: Option<String>,
) -> Self
pub fn with_host_worktree( runner: Arc<dyn Runner>, policy: WorktreePolicy, host_worktree: Option<String>, ) -> Self
Orca backend that addresses host_worktree instead of the environment’s
ORCA_WORKTREE_ID. Tests inject it; production reads the inherited
value through OrcaBackend::with_policy.
Trait Implementations§
Source§impl SessionBackend for OrcaBackend
impl SessionBackend for OrcaBackend
fn name(&self) -> &'static str
fn capabilities(&self) -> Capabilities
fn available(&self) -> Result<bool>
fn spawn(&self, spec: SpawnSpec) -> Result<SessionRef>
fn attach(&self, session: &SessionRef) -> Result<SessionRef>
fn probe(&self, session: &SessionRef) -> Result<ResourceProbe>
fn close( &self, session: &SessionRef, reason: CloseReason, force: bool, ) -> Result<()>
fn rename(&self, session: &SessionRef, title: &str) -> Result<()>
fn focus(&self, session: &SessionRef) -> Result<()>
Source§fn self_driven(&self) -> bool
fn self_driven(&self) -> bool
Whether this backend carries task payloads itself. A backend that
answers true delivers through
SessionBackend::deliver; one that
answers false keeps the adapter-socket path where a mounted plugin
receives assign or config_get{key:"stdin:<text>"}.Source§fn deliver(
&self,
_session: &SessionRef,
_task_id: &str,
_prompt: &str,
) -> Result<()>
fn deliver( &self, _session: &SessionRef, _task_id: &str, _prompt: &str, ) -> Result<()>
Hand one delivery’s rendered text to a session this backend owns. Read more
Source§fn nudge(
&self,
_session: &SessionRef,
_task_id: &str,
_text: &str,
) -> Result<()>
fn nudge( &self, _session: &SessionRef, _task_id: &str, _text: &str, ) -> Result<()>
Tell one session its turn ended without a completion, in this client’s
own words (
docs/v2-CONTRACT.md §3c). Read moreSource§fn set_content_sink(&self, _sink: Arc<dyn ContentSink>)
fn set_content_sink(&self, _sink: Arc<dyn ContentSink>)
Install the client-owned destination for records journalled by this
backend. Backends without a journal keep the default no-op.
Source§fn outcomes(&self) -> Option<OutcomeFeed>
fn outcomes(&self) -> Option<OutcomeFeed>
Terminal facts this backend observed without an adapter report.
Absent for backends whose sessions end through the adapter socket.
Auto Trait Implementations§
impl !Freeze for OrcaBackend
impl !RefUnwindSafe for OrcaBackend
impl !UnwindSafe for OrcaBackend
impl Send for OrcaBackend
impl Sync for OrcaBackend
impl Unpin for OrcaBackend
impl UnsafeUnpin for OrcaBackend
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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