1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// SPDX-License-Identifier: MIT OR Apache-2.0
//! Data types that flow over the compute backend IPC wire.
//!
//! # Transport types vs training types
//!
//! [`SpikeBatch`] and [`TraceBatch`] in this crate are **IPC transport / wire
//! payloads**. They are owned by `corpus-ipc` and serialized on the hybrid-flow
//! message bus (`IpcMessage::Spikes`, `IpcMessage::EligibilityTraces`).
//!
//! They are **not** in-memory training batches (spike-train arrays with
//! optional `times` / `targets`, or unstructured e-prop `traces`) that other
//! libraries may also call `SpikeBatch` / `TraceBatch`:
//!
//! | | `corpus-ipc` (this crate) |
//! |---|---------------------------|
//! | Domain | IPC wire / session routing |
//! | `SpikeBatch` | `session_id`, `batch_id`, timestamped [`SpikeEvent`]s |
//! | `TraceBatch` | `session_id`, `batch_id`, typed [`TraceData`] rows |
//!
//! Keep the Rust names `SpikeBatch` / `TraceBatch` so serde identifiers and
//! existing imports stay stable. Prefer [`IpcSpikeBatch`] / [`IpcTraceBatch`]
//! when the name collision would otherwise be unclear. Do not merge the IPC
//! and training definitions.
pub use ;
pub use EmbeddingBatch;
pub use ;
pub use IpcMessage;
pub use BatchMetadata;
pub use NeuromodulatorSnapshot;
pub use ;
pub use StimulusBatch;
pub use ;