Expand description
Event types for the Net event bus.
Events are opaque JSON values - the event bus performs no schema validation or interpretation of event content.
§Performance Optimization
Since Net is schema-agnostic, we offer multiple event representations:
Event: Standard wrapper aroundserde_json::Value(convenient but slower)RawEvent: Pre-serialized bytes with cached hash (fastest for high-throughput)
For maximum performance, use RawEvent::from_bytes() when you already have
JSON bytes (e.g., from a network buffer or file).
Structs§
- Batch
- A batch of events for adapter dispatch.
- Event
- An opaque event - any valid JSON value.
- Internal
Event - Internal event representation with metadata assigned at ingestion.
- RawEvent
- A pre-serialized event with cached hash.
- Stored
Event - An event retrieved from storage with its backend-specific ID.
Functions§
- batch_
process_ nonce - Per-process nonce used by
Batch::process_nonce. Sampled once (lazy) from a mix of entropy sources so two processes launched on the same machine within a single nanosecond tick are still distinguishable.