An external data source that can provide Datoms.
| 45 | |
| 46 | /// An external data source that can provide Datoms. |
| 47 | pub trait Sourceable<S> |
| 48 | where |
| 49 | S: Scope, |
| 50 | S::Timestamp: Timestamp + Lattice, |
| 51 | { |
| 52 | /// Conjures from thin air (or from wherever the source lives) one |
| 53 | /// or more timely streams feeding directly into attributes. |
| 54 | fn source( |
| 55 | &self, |
| 56 | scope: &mut S, |
| 57 | context: SourcingContext<S::Timestamp>, |
| 58 | ) -> Vec<( |
| 59 | Aid, |
| 60 | AttributeConfig, |
| 61 | Stream<S, ((Value, Value), S::Timestamp, isize)>, |
| 62 | )>; |
| 63 | } |
| 64 | |
| 65 | /// Supported external data sources. |
| 66 | #[derive(Hash, PartialEq, Eq, PartialOrd, Ord, Clone, Debug, Serialize, Deserialize)] |
nothing calls this directly
no outgoing calls
no test coverage detected