pub struct HyperliquidSourceBuilder { /* private fields */ }Expand description
Builder for HyperliquidSource.
Implementations§
Source§impl HyperliquidSourceBuilder
impl HyperliquidSourceBuilder
pub fn new(id: impl Into<String>) -> Self
pub fn with_network(self, network: HyperliquidNetwork) -> Self
pub fn with_coins(self, coins: Vec<impl Into<String>>) -> Self
pub fn with_all_coins(self) -> Self
pub fn with_trades(self, enabled: bool) -> Self
pub fn with_order_book(self, enabled: bool) -> Self
pub fn with_mid_prices(self, enabled: bool) -> Self
pub fn with_funding_rates(self, enabled: bool) -> Self
pub fn with_liquidations(self, enabled: bool) -> Self
pub fn with_funding_poll_interval_secs(self, interval_secs: u64) -> Self
pub fn start_from_beginning(self) -> Self
pub fn start_from_now(self) -> Self
pub fn start_from_timestamp(self, timestamp: i64) -> Self
pub fn with_dispatch_mode(self, mode: DispatchMode) -> Self
pub fn with_dispatch_buffer_capacity(self, capacity: usize) -> Self
pub fn with_bootstrap_provider( self, provider: impl BootstrapProvider + 'static, ) -> Self
pub fn with_auto_start(self, auto_start: bool) -> Self
pub fn with_state_store(self, state_store: Arc<dyn StateStoreProvider>) -> Self
pub fn build(self) -> Result<HyperliquidSource>
Auto Trait Implementations§
impl !RefUnwindSafe for HyperliquidSourceBuilder
impl !UnwindSafe for HyperliquidSourceBuilder
impl Freeze for HyperliquidSourceBuilder
impl Send for HyperliquidSourceBuilder
impl Sync for HyperliquidSourceBuilder
impl Unpin for HyperliquidSourceBuilder
impl UnsafeUnpin for HyperliquidSourceBuilder
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