pub struct InMemoryDataFeed { /* private fields */ }Expand description
A fully generic, dependency-free DataFeedAdapter: serves bars from an in-memory table.
Useful for backtests, replay, and tests — not tied to any provider.
Implementations§
Trait Implementations§
Source§impl Clone for InMemoryDataFeed
impl Clone for InMemoryDataFeed
Source§fn clone(&self) -> InMemoryDataFeed
fn clone(&self) -> InMemoryDataFeed
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DataFeedAdapter for InMemoryDataFeed
impl DataFeedAdapter for InMemoryDataFeed
Source§fn poll_live(&mut self) -> Result<Vec<Bar>, Self::Error>
fn poll_live(&mut self) -> Result<Vec<Bar>, Self::Error>
“Live” bars for an in-memory feed are simply whatever was loaded beyond the cursor
established at subscription time — a deterministic stand-in for a real push feed, useful
for testing consumers of DataFeedAdapter without a network dependency.
type Error = String
Source§impl Debug for InMemoryDataFeed
impl Debug for InMemoryDataFeed
Source§impl Default for InMemoryDataFeed
impl Default for InMemoryDataFeed
Source§fn default() -> InMemoryDataFeed
fn default() -> InMemoryDataFeed
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InMemoryDataFeed
impl RefUnwindSafe for InMemoryDataFeed
impl Send for InMemoryDataFeed
impl Sync for InMemoryDataFeed
impl Unpin for InMemoryDataFeed
impl UnsafeUnpin for InMemoryDataFeed
impl UnwindSafe for InMemoryDataFeed
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