MCPcopy 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
16impl BusEventDef {
17 pub const fn new(event_type: &'static str) -> Self {
18 Self { event_type }
19 }
20}
21
22type BoxedCallback = Box<dyn Fn(&str, serde_json::Value) + Send + Sync>;

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected