pub struct ObservationStore { /* private fields */ }Expand description
Bounded strategy-visible working history.
Implementations§
Source§impl ObservationStore
impl ObservationStore
pub fn new(limits: ObservationStoreLimits) -> Self
pub fn limits(&self) -> ObservationStoreLimits
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn omitted(&self) -> u64
pub fn observations(&self, count: usize) -> ObservationWindow<'_>
pub fn for_symbol<'a>( &'a self, symbol: &'a str, count: usize, ) -> ObservationSelection<'a>
pub fn latest_zone(&self, zone_id: &ZoneId) -> Option<&StrategyObservation>
Trait Implementations§
Source§impl Clone for ObservationStore
impl Clone for ObservationStore
Source§impl Debug for ObservationStore
impl Debug for ObservationStore
Source§impl HistoricalObservationView for ObservationStore
impl HistoricalObservationView for ObservationStore
fn observations(&self, count: usize) -> ObservationWindow<'_>
fn for_symbol<'a>( &'a self, symbol: &'a str, count: usize, ) -> ObservationSelection<'a>
fn latest_zone(&self, zone_id: &ZoneId) -> Option<&StrategyObservation>
fn omitted(&self) -> u64
Auto Trait Implementations§
impl Freeze for ObservationStore
impl RefUnwindSafe for ObservationStore
impl Send for ObservationStore
impl Sync for ObservationStore
impl Unpin for ObservationStore
impl UnsafeUnpin for ObservationStore
impl UnwindSafe for ObservationStore
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