MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / set_bus

Method set_bus

crates/opencode-session/src/session.rs:1212–1214  ·  view source on GitHub ↗

Set the Bus for event publishing (can be called after construction)

(&mut self, bus: Arc<Bus>)

Source from the content-addressed store, hash-verified

1210impl SessionManager {
1211 /// Set the Bus for event publishing (can be called after construction)
1212 pub fn set_bus(&mut self, bus: Arc<Bus>) {
1213 self.bus = Some(bus);
1214 }
1215}
1216
1217/// Filter options for listing sessions

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected