Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChrisFeldmeier/OpenCodeRust
/ new
Method
new
crates/opencode-core/src/bus.rs:17–19 ·
view source on GitHub ↗
(event_type: &'static str)
Source
from the content-addressed store, hash-verified
15
16
impl BusEventDef {
17
pub const fn new(event_type: &'static str) -> Self {
18
Self { event_type }
19
}
20
}
21
22
type BoxedCallback = Box<dyn Fn(&str, serde_json::Value) + Send + Sync>;
Callers
nothing calls this directly
Calls
1
new
Function · 0.85
Tested by
no test coverage detected