pub struct HostBridge { /* private fields */ }Expand description
Host-callback bridge handed to an executor (via EventSink) so a nested
sub-agent can proxy a gated-tool approval to the host — over the same
per-child WebSocket, no broker needed. Absent for tests/EchoExecutor.
Implementations§
Source§impl HostBridge
impl HostBridge
Sourcepub fn channel() -> (Self, UnboundedReceiver<HostRequest>)
pub fn channel() -> (Self, UnboundedReceiver<HostRequest>)
Create a bridge + the receiver the transport pumps to the wire.
Trait Implementations§
Source§impl Clone for HostBridge
impl Clone for HostBridge
Source§fn clone(&self) -> HostBridge
fn clone(&self) -> HostBridge
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 Freeze for HostBridge
impl RefUnwindSafe for HostBridge
impl Send for HostBridge
impl Sync for HostBridge
impl Unpin for HostBridge
impl UnsafeUnpin for HostBridge
impl UnwindSafe for HostBridge
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