pub struct ConfirmedResampler { /* private fields */ }Expand description
A lookahead-safe view over a BarResampler: only ever yields a bar once its target-
timeframe bucket is confirmed closed, so it is structurally impossible to read a still-forming
(repainting) higher-timeframe value through it — the equivalent of a lookahead-free
higher-timeframe request combined with confirmed-only consumption.
Implementations§
Source§impl ConfirmedResampler
impl ConfirmedResampler
pub fn new(target_tf: Timeframe) -> Result<Self, TimeframeError>
pub fn with_utc_offset( target_tf: Timeframe, utc_offset_seconds: i32, ) -> Result<Self, TimeframeError>
pub fn reset(&mut self)
Trait Implementations§
Source§impl Clone for ConfirmedResampler
impl Clone for ConfirmedResampler
Source§fn clone(&self) -> ConfirmedResampler
fn clone(&self) -> ConfirmedResampler
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 moreAuto Trait Implementations§
impl Freeze for ConfirmedResampler
impl RefUnwindSafe for ConfirmedResampler
impl Send for ConfirmedResampler
impl Sync for ConfirmedResampler
impl Unpin for ConfirmedResampler
impl UnsafeUnpin for ConfirmedResampler
impl UnwindSafe for ConfirmedResampler
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