saluki_core/topology/interconnect/
mod.rs

1//! Component interconnects.
2
3mod event_buffer;
4pub use self::event_buffer::{EventBufferManager, FixedSizeEventBuffer};
5
6mod consumer;
7pub use self::consumer::Consumer;
8
9mod dispatcher;
10pub use self::dispatcher::{BufferedDispatcher, Dispatcher};
11
12/// A value that can be dispatched.
13pub trait Dispatchable: Clone {
14    /// Returns the number of items in the dispatchable value.
15    ///
16    /// This determines how many underlying items are contained within the dispatchable value. For single item types, this will
17    /// generally be one. For container types, this will be the number of items contained within the container.
18    fn item_count(&self) -> usize;
19}