pub struct AggregatorHistoryBuffer<'a> {
pub insertion_idx: usize,
pub rows: Ref<'a, [AggregatorHistoryRow]>,
}
Fields
insertion_idx: usize
rows: Ref<'a, [AggregatorHistoryRow]>
Implementations
sourceimpl<'a> AggregatorHistoryBuffer<'a>
impl<'a> AggregatorHistoryBuffer<'a>
pub fn new(
history_buffer: &'a AccountInfo<'_>
) -> Result<AggregatorHistoryBuffer<'a>>
sourcepub fn lower_bound(&self, timestamp: i64) -> Option<AggregatorHistoryRow>
pub fn lower_bound(&self, timestamp: i64) -> Option<AggregatorHistoryRow>
return the previous row in the history buffer for a given timestamp
Auto Trait Implementations
impl<'a> !RefUnwindSafe for AggregatorHistoryBuffer<'a>
impl<'a> !Send for AggregatorHistoryBuffer<'a>
impl<'a> !Sync for AggregatorHistoryBuffer<'a>
impl<'a> Unpin for AggregatorHistoryBuffer<'a>
impl<'a> !UnwindSafe for AggregatorHistoryBuffer<'a>
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more