pub struct EngineHandle {
pub tx_op: Sender<OpEnvelope>,
pub rx_event: Arc<RwLock<Receiver<EventMsg>>>,
/* private fields */
}Expand description
Handle to communicate with the core engine via the Op-in /
EventMsg-out channels. The TUI’s EngineHandle and the headless
exec both hold this type; handle.steer, cancel, approve_tool_call
etc are the same code path in both modes so crates/execpolicy stays
the authority identically.
Fields§
§tx_op: Sender<OpEnvelope>§rx_event: Arc<RwLock<Receiver<EventMsg>>>Implementations§
Source§impl EngineHandle
impl EngineHandle
Trait Implementations§
Source§impl Clone for EngineHandle
impl Clone for EngineHandle
Source§fn clone(&self) -> EngineHandle
fn clone(&self) -> EngineHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for EngineHandle
impl !UnwindSafe for EngineHandle
impl Freeze for EngineHandle
impl Send for EngineHandle
impl Sync for EngineHandle
impl Unpin for EngineHandle
impl UnsafeUnpin for EngineHandle
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