pub struct NoBridge;Expand description
No-op bridge for embedded use.
Trait Implementations§
Source§impl RuntimeBridge for NoBridge
impl RuntimeBridge for NoBridge
Source§fn dispatch_ask_user(
&self,
args: &str,
session_id: Option<u64>,
) -> impl Future<Output = String> + Send
fn dispatch_ask_user( &self, args: &str, session_id: Option<u64>, ) -> impl Future<Output = String> + Send
Handle
ask_user — block until user replies.Source§fn dispatch_delegate(
&self,
args: &str,
agent: &str,
) -> impl Future<Output = String> + Send
fn dispatch_delegate( &self, args: &str, agent: &str, ) -> impl Future<Output = String> + Send
Handle
delegate — spawn sub-agent tasks.Source§fn session_cwd(&self, _session_id: u64) -> Option<PathBuf>
fn session_cwd(&self, _session_id: u64) -> Option<PathBuf>
Resolve the working directory for a session.
Returns
None to fall back to the runtime’s base cwd.Source§fn on_agent_event(&self, _agent: &str, _session_id: u64, _event: &AgentEvent)
fn on_agent_event(&self, _agent: &str, _session_id: u64, _event: &AgentEvent)
Called when an agent event occurs. The daemon uses this to broadcast
protobuf events to console subscribers. Default: no-op.
Auto Trait Implementations§
impl Freeze for NoBridge
impl RefUnwindSafe for NoBridge
impl Send for NoBridge
impl Sync for NoBridge
impl Unpin for NoBridge
impl UnsafeUnpin for NoBridge
impl UnwindSafe for NoBridge
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