pub struct SessionTracker { /* private fields */ }Expand description
Session membership and opening-range state for a stream of bars.
Implementations§
Source§impl SessionTracker
impl SessionTracker
pub fn new(config: SessionConfig) -> Result<Self, SessionConfigError>
pub fn reset(&mut self)
pub fn is_new_session(&self) -> bool
pub fn in_session(&self) -> bool
pub fn session_open_timestamp(&self) -> Option<i64>
pub fn orb_high(&self) -> Option<f64>
pub fn orb_low(&self) -> Option<f64>
pub fn in_orb_window(&self) -> bool
Trait Implementations§
Source§impl Clone for SessionTracker
impl Clone for SessionTracker
Source§fn clone(&self) -> SessionTracker
fn clone(&self) -> SessionTracker
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 SessionTracker
impl RefUnwindSafe for SessionTracker
impl Send for SessionTracker
impl Sync for SessionTracker
impl Unpin for SessionTracker
impl UnsafeUnpin for SessionTracker
impl UnwindSafe for SessionTracker
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