pub struct StrategyStore { /* private fields */ }Implementations§
Source§impl StrategyStore
impl StrategyStore
pub fn create_watch( &mut self, mode: BinanceMode, template: StrategyTemplate, instrument: Instrument, config: StrategyStartConfig, ) -> Result<StrategyWatch, StrategyError>
pub fn active_watches(&self, mode: BinanceMode) -> Vec<&StrategyWatch>
pub fn history(&self, mode: BinanceMode) -> Vec<&StrategyWatch>
pub fn get(&self, mode: BinanceMode, watch_id: u64) -> Option<&StrategyWatch>
pub fn stop_watch( &mut self, mode: BinanceMode, watch_id: u64, ) -> Result<StrategyWatch, StrategyError>
Trait Implementations§
Source§impl Clone for StrategyStore
impl Clone for StrategyStore
Source§fn clone(&self) -> StrategyStore
fn clone(&self) -> StrategyStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StrategyStore
impl Debug for StrategyStore
Source§impl Default for StrategyStore
impl Default for StrategyStore
Source§fn default() -> StrategyStore
fn default() -> StrategyStore
Returns the “default value” for a type. Read more
Source§impl PartialEq for StrategyStore
impl PartialEq for StrategyStore
impl StructuralPartialEq for StrategyStore
Auto Trait Implementations§
impl Freeze for StrategyStore
impl RefUnwindSafe for StrategyStore
impl Send for StrategyStore
impl Sync for StrategyStore
impl Unpin for StrategyStore
impl UnsafeUnpin for StrategyStore
impl UnwindSafe for StrategyStore
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