pub struct ClientRunner { /* private fields */ }Expand description
Runner with IO bridging for Human-interactive channels.
This runner is dedicated to bridging Human input/output with the system. It does NOT hold a Component - instead it broadcasts UserInput events to all channels and displays Output events from other channels.
§Architecture
Human ↔ ClientRunner (IOBridge only)
↓ UserInput Event (broadcast)
EventBus
↓
ChannelRunner(agent_mgr, etc.)
↓ Output Event
ClientRunner
↓
Human (display)Implementations§
Source§impl ClientRunner
impl ClientRunner
Sourcepub fn new(
id: ChannelId,
config: ClientRunnerConfig,
io_port: IOPort,
principal: Principal,
) -> (Self, ChannelHandle)
pub fn new( id: ChannelId, config: ClientRunnerConfig, io_port: IOPort, principal: Principal, ) -> (Self, ChannelHandle)
Creates a new ClientRunner with IO bridging (no component).
This runner is dedicated to Human I/O. It broadcasts UserInput events to all channels and displays Output events received from other channels.
§Arguments
id- The channel’s IDconfig- World and signal channel configurationio_port- IO port for View communicationprincipal- Principal for signal creation
Sourcepub fn io_bridge_mut(&mut self) -> &mut IOBridge
pub fn io_bridge_mut(&mut self) -> &mut IOBridge
Returns a mutable reference to the IO bridge.
Sourcepub async fn run(self) -> RunnerResult
pub async fn run(self) -> RunnerResult
Runs the channel’s event loop with IO integration.
Handles three input sources concurrently:
- Signals (highest priority - control messages)
- Events (component work)
- IO input (user interaction → converted to Signals)
Auto Trait Implementations§
impl Freeze for ClientRunner
impl !RefUnwindSafe for ClientRunner
impl Send for ClientRunner
impl Sync for ClientRunner
impl Unpin for ClientRunner
impl UnsafeUnpin for ClientRunner
impl !UnwindSafe for ClientRunner
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