pub enum HubEvent {
Execution {
project_id: i64,
script_name: String,
execution_id: Option<String>,
event: EngineEvent,
seq: Option<i64>,
at: Option<String>,
},
Registry(RegistryEvent),
Bench(BenchEvent),
}Variants§
Execution
Fields
§
execution_id: Option<String>The execution row’s id. Lets subscribers filter out events
from a different concurrent run of the same script — without
it, two callers running the same script around the same time
see each other’s events. Optional on the wire for back-compat
with older servers that predate the field (#1042 / TS SDK
HubEvent.payload.execution_id).
§
event: EngineEventRegistry(RegistryEvent)
Bench(BenchEvent)
A live bench-run lifecycle event (RunStarted / ResultRecorded /
RunFinished). Previously dropped on the floor — and, because the
hub batch was decoded as Vec<HubEvent> with no catch-all, a Bench
frame co-occurring with Execution frames in the same batch dropped
the entire batch. The per-element decode in sub::events plus this
typed arm fix both halves (#bench-hub-events).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HubEvent
impl<'de> Deserialize<'de> for HubEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HubEvent
impl RefUnwindSafe for HubEvent
impl Send for HubEvent
impl Sync for HubEvent
impl Unpin for HubEvent
impl UnsafeUnpin for HubEvent
impl UnwindSafe for HubEvent
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