pub struct Engine { /* private fields */ }Implementations§
Source§impl Engine
impl Engine
pub fn new( http_provider: HttpProvider, ws_provider: WsProvider, db: Database, nonce_manager: NonceManager, portfolio: Arc<PortfolioManager>, safety_guard: Arc<SafetyGuard>, dry_run: bool, gas_oracle: GasOracle, price_feed: PriceFeed, chain_id: u64, relay_url: String, bundle_signer: PrivateKeySigner, max_gas_price_gwei: u64, simulator: Simulator, metrics_port: u16, strategy_enabled: bool, slippage_bps: u64, router_allowlist: HashSet<Address>, wrapped_native: Address, mev_share_stream_url: String, mev_share_history_limit: u32, mev_share_enabled: bool, ) -> Self
pub async fn run(self) -> Result<(), AppError>
Auto Trait Implementations§
impl Freeze for Engine
impl !RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl !UnwindSafe for Engine
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