pub struct StrategyExecutor { /* private fields */ }Implementations§
Source§impl StrategyExecutor
impl StrategyExecutor
pub fn new( tx_rx: UnboundedReceiver<StrategyWork>, block_rx: Receiver<Header>, safety_guard: Arc<SafetyGuard>, bundle_sender: SharedBundleSender, db: Database, portfolio: Arc<PortfolioManager>, gas_oracle: GasOracle, price_feed: PriceFeed, chain_id: u64, max_gas_price_gwei: u64, simulator: Simulator, stats: Arc<StrategyStats>, signer: PrivateKeySigner, nonce_manager: NonceManager, slippage_bps: u64, http_provider: HttpProvider, dry_run: bool, router_allowlist: HashSet<Address>, wrapped_native: Address, ) -> Self
pub async fn run(self) -> Result<(), AppError>
Auto Trait Implementations§
impl Freeze for StrategyExecutor
impl !RefUnwindSafe for StrategyExecutor
impl Send for StrategyExecutor
impl Sync for StrategyExecutor
impl Unpin for StrategyExecutor
impl !UnwindSafe for StrategyExecutor
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more