pub struct EngineCtx {Show 21 fields
pub orderbooks: HashMap<String, OrderBook>,
pub next_order_id: u64,
pub next_trade_id: u64,
pub l2_update_seq: Arc<AtomicI64>,
pub expired_instruments: HashMap<String, bool>,
pub spot_prices: HashMap<String, Decimal>,
pub iv_surfaces: HashMap<String, VolatilitySurface>,
pub iv_source_timestamps: HashMap<String, i64>,
pub instrument_trading_modes: HashMap<String, TradingModes>,
pub order_index: EngineOrderIndex,
pub engine_positions: HashMap<(WalletAddress, String), EnginePosition>,
pub balance_ledger: BalanceLedger,
pub deposit_update_watermarks: HashMap<WalletAddress, DepositUpdateWatermark>,
pub applied_deposit_source_event_hashes: BTreeSet<FixedBytes<32>>,
pub pm_settlement_state: PmSettlementState,
pub mmp_state: HashMap<(WalletAddress, String), EngineMmpState>,
pub agent_authorizations: HashMap<WalletAddress, HashMap<WalletAddress, Option<u64>>>,
pub nonce_sets: HashMap<WalletAddress, BoundedNonceSet>,
pub rsm_signer_nonces: HashMap<WalletAddress, u64>,
pub deps: EngineDeps,
pub db: Option<DatabaseHandler>,
}Expand description
All mutable + immutable shared state that managers need to access.
Kept as a single struct field on UnifiedEngine to enable split borrows
between self.ctx and self.<manager>.
Fields§
§orderbooks: HashMap<String, OrderBook>Active orderbooks keyed by symbol.
next_order_id: u64Next order ID to allocate (global monotonic counter).
next_trade_id: u64Next trade ID to allocate (global monotonic counter).
l2_update_seq: Arc<AtomicI64>L2 sequence counter for orderbook snapshots.
expired_instruments: HashMap<String, bool>symbol → expired flag (shared between engine and ExpiryManager).
spot_prices: HashMap<String, Decimal>Canonical spot prices per underlying, updated only by PriceUpdate commands. Margin checks read from here instead of external caches, making the engine deterministic and replayable.
iv_surfaces: HashMap<String, VolatilitySurface>Canonical IV surfaces per underlying, updated only by IvUpdate commands. The SpanMarginService reads from these instead of external vol oracles.
iv_source_timestamps: HashMap<String, i64>Source timestamps for IV surfaces (from the upstream oracle snapshot). Used for change detection to skip ingestion when the oracle hasn’t updated.
instrument_trading_modes: HashMap<String, TradingModes>Per-instrument trading mode (orderbook-only, rfq-only, or both).
order_index: EngineOrderIndex§engine_positions: HashMap<(WalletAddress, String), EnginePosition>Engine-owned option positions, updated from fills inside apply(). Single source of truth for margin checks. PortfolioService is a downstream projection, not consulted during apply(). Perp positions are in deps.perp_positions (fed by HypercorePositionUpdate).
balance_ledger: BalanceLedgerEngine-owned cash balances per wallet. Updated from fill side effects (realized PnL + premium deltas) and deposits. Margin checks read from here instead of the async Ledger.
deposit_update_watermarks: HashMap<WalletAddress, DepositUpdateWatermark>Last applied deposit update per wallet. This prevents an older post-balance command from rolling balance_ledger backward after a newer deposit has already applied.
applied_deposit_source_event_hashes: BTreeSet<FixedBytes<32>>Applied cash DepositUpdate source event hashes.
This is intentionally an incident-stabilization tradeoff, not the target architecture. Cash DepositUpdate is now an additive delta, so the old single per-wallet sequence watermark can under-credit if sequence 11 is applied before an unseen sequence 10. The source_event_hash is the deterministic idempotency key, and tracking it here makes duplicate replay safe without dropping out-of-order lower-sequence deltas.
The cost is that this set grows with every applied cash deposit and is serialized in EngineStateSnapshot. That is unacceptable long-term. The intended replacement is a bounded engine-owned cash sequencer, similar in spirit to BoundedNonceSet but gap-buffered for ordered deltas: store only applied_through plus a small pending window, require a per-wallet cash sequence, apply contiguous deltas, and fail closed when the gap window is exceeded. A DB-owned cash queue would also fix ordering, but it moves authority away from the engine and back toward projection-driven cash mutation, which is the wrong architectural direction.
pm_settlement_state: PmSettlementStateEngine-owned PM settlement-pool authority.
Projection tables are downstream audit surfaces and must never hydrate this state on startup or rebuild.
mmp_state: HashMap<(WalletAddress, String), EngineMmpState>Engine-internal MMP fill tracking per (wallet, currency). Updated synchronously inside apply() so the matching loop never performs async reads against the external MmpCache.
Engine-owned agent authorizations: owner wallet → (agent wallet → optional expiry ms).
None = never expires. Updated by ApproveAgent/RevokeAgent commands.
Read via EngineSnapshot for lock-free API access.
nonce_sets: HashMap<WalletAddress, BoundedNonceSet>Per-signer bounded nonce sets (HL model). The engine stores the N highest nonces per signer. A new nonce must be greater than the smallest in the set and not already used. Shared across orders, agent auth, and QP handshakes. Keyed by signer address (api_wallet for orders, recovered signer for agent auth, QP wallet for handshakes).
rsm_signer_nonces: HashMap<WalletAddress, u64>Canonical RSM signer nonce allocation. Directive-producing commands allocate here during apply(), then append a NeedsRsmSignature outbox item carrying the allocated nonce.
deps: EngineDeps§db: Option<DatabaseHandler>Implementations§
Source§impl EngineCtx
impl EngineCtx
fn symbol_is_expired_by_wall_clock(symbol: &str) -> Option<bool>
Sourcepub fn restore_from_snapshot(&mut self, snapshot: &EngineStateSnapshot)
pub fn restore_from_snapshot(&mut self, snapshot: &EngineStateSnapshot)
Restore engine state from a persistent snapshot.
Sets counters, restores orderbook orders, rebuilds the order index, and restores expired instruments. Called during startup before delta replay to skip full journal replay.
Trait Implementations§
Source§impl<'a> RestartStateComponent<EngineRecoveryCapture<'a>, EngineCtx, EngineCommand, EngineStateDigest> for AuthNonceComponent
impl<'a> RestartStateComponent<EngineRecoveryCapture<'a>, EngineCtx, EngineCommand, EngineStateDigest> for AuthNonceComponent
const NAME: RestartComponentName = RestartComponentName::AuthNonce
type Snapshot = EngineStateSnapshot
fn capture(ctx: &EngineRecoveryCapture<'a>) -> Self::Snapshot
fn restore(ctx: &mut EngineCtx, snapshot: &Self::Snapshot)
fn digest(ctx: &EngineRecoveryCapture<'a>) -> EngineStateDigest
fn replay(_command: &EngineCommand, _ctx: &mut EngineCtx) -> ReplayDisposition
fn mutation_sources() -> &'static [MutationSource]
fn descriptor() -> RestartComponentDescriptor
Source§impl<'a> RestartStateComponent<EngineRecoveryCapture<'a>, EngineCtx, EngineCommand, EngineStateDigest> for CashLedgerComponent
impl<'a> RestartStateComponent<EngineRecoveryCapture<'a>, EngineCtx, EngineCommand, EngineStateDigest> for CashLedgerComponent
const NAME: RestartComponentName = RestartComponentName::CashLedger
type Snapshot = EngineStateSnapshot
fn capture(ctx: &EngineRecoveryCapture<'a>) -> Self::Snapshot
fn restore(ctx: &mut EngineCtx, snapshot: &Self::Snapshot)
fn digest(ctx: &EngineRecoveryCapture<'a>) -> EngineStateDigest
fn replay(_command: &EngineCommand, _ctx: &mut EngineCtx) -> ReplayDisposition
fn mutation_sources() -> &'static [MutationSource]
fn descriptor() -> RestartComponentDescriptor
Source§impl<'a> RestartStateComponent<EngineRecoveryCapture<'a>, EngineCtx, EngineCommand, EngineStateDigest> for HypercoreStateComponent
impl<'a> RestartStateComponent<EngineRecoveryCapture<'a>, EngineCtx, EngineCommand, EngineStateDigest> for HypercoreStateComponent
const NAME: RestartComponentName = RestartComponentName::HypercoreState
type Snapshot = EngineStateSnapshot
fn capture(ctx: &EngineRecoveryCapture<'a>) -> Self::Snapshot
fn restore(ctx: &mut EngineCtx, snapshot: &Self::Snapshot)
fn digest(ctx: &EngineRecoveryCapture<'a>) -> EngineStateDigest
fn replay(_command: &EngineCommand, _ctx: &mut EngineCtx) -> ReplayDisposition
fn mutation_sources() -> &'static [MutationSource]
fn descriptor() -> RestartComponentDescriptor
Source§impl<'a> RestartStateComponent<EngineRecoveryCapture<'a>, EngineCtx, EngineCommand, EngineStateDigest> for MarketCatalogComponent
impl<'a> RestartStateComponent<EngineRecoveryCapture<'a>, EngineCtx, EngineCommand, EngineStateDigest> for MarketCatalogComponent
const NAME: RestartComponentName = RestartComponentName::MarketCatalog
type Snapshot = EngineStateSnapshot
fn capture(ctx: &EngineRecoveryCapture<'a>) -> Self::Snapshot
fn restore(ctx: &mut EngineCtx, snapshot: &Self::Snapshot)
fn digest(ctx: &EngineRecoveryCapture<'a>) -> EngineStateDigest
fn replay(_command: &EngineCommand, _ctx: &mut EngineCtx) -> ReplayDisposition
fn mutation_sources() -> &'static [MutationSource]
fn descriptor() -> RestartComponentDescriptor
Source§impl<'a> RestartStateComponent<EngineRecoveryCapture<'a>, EngineCtx, EngineCommand, EngineStateDigest> for MmpLiquidationComponent
impl<'a> RestartStateComponent<EngineRecoveryCapture<'a>, EngineCtx, EngineCommand, EngineStateDigest> for MmpLiquidationComponent
const NAME: RestartComponentName = RestartComponentName::MmpLiquidation
type Snapshot = EngineStateSnapshot
fn capture(ctx: &EngineRecoveryCapture<'a>) -> Self::Snapshot
fn restore(ctx: &mut EngineCtx, snapshot: &Self::Snapshot)
fn digest(ctx: &EngineRecoveryCapture<'a>) -> EngineStateDigest
fn replay(_command: &EngineCommand, _ctx: &mut EngineCtx) -> ReplayDisposition
fn mutation_sources() -> &'static [MutationSource]
fn descriptor() -> RestartComponentDescriptor
Source§impl<'a> RestartStateComponent<EngineRecoveryCapture<'a>, EngineCtx, EngineCommand, EngineStateDigest> for OrderbookStateComponent
impl<'a> RestartStateComponent<EngineRecoveryCapture<'a>, EngineCtx, EngineCommand, EngineStateDigest> for OrderbookStateComponent
const NAME: RestartComponentName = RestartComponentName::OrderbookState
type Snapshot = EngineStateSnapshot
fn capture(ctx: &EngineRecoveryCapture<'a>) -> Self::Snapshot
fn restore(ctx: &mut EngineCtx, snapshot: &Self::Snapshot)
fn digest(ctx: &EngineRecoveryCapture<'a>) -> EngineStateDigest
fn replay(_command: &EngineCommand, _ctx: &mut EngineCtx) -> ReplayDisposition
fn mutation_sources() -> &'static [MutationSource]
fn descriptor() -> RestartComponentDescriptor
Source§impl<'a> RestartStateComponent<EngineRecoveryCapture<'a>, EngineCtx, EngineCommand, EngineStateDigest> for PersistentEngineStateComponent
impl<'a> RestartStateComponent<EngineRecoveryCapture<'a>, EngineCtx, EngineCommand, EngineStateDigest> for PersistentEngineStateComponent
const NAME: RestartComponentName = RestartComponentName::PersistentEngineStateEnvelope
type Snapshot = EngineStateSnapshot
fn capture(ctx: &EngineRecoveryCapture<'a>) -> Self::Snapshot
fn restore(ctx: &mut EngineCtx, snapshot: &Self::Snapshot)
fn digest(ctx: &EngineRecoveryCapture<'a>) -> EngineStateDigest
fn replay(_command: &EngineCommand, _ctx: &mut EngineCtx) -> ReplayDisposition
fn mutation_sources() -> &'static [MutationSource]
fn descriptor() -> RestartComponentDescriptor
Source§impl<'a> RestartStateComponent<EngineRecoveryCapture<'a>, EngineCtx, EngineCommand, EngineStateDigest> for PmSettlementStateComponent
impl<'a> RestartStateComponent<EngineRecoveryCapture<'a>, EngineCtx, EngineCommand, EngineStateDigest> for PmSettlementStateComponent
const NAME: RestartComponentName = RestartComponentName::PmSettlementState
type Snapshot = EngineStateSnapshot
fn capture(ctx: &EngineRecoveryCapture<'a>) -> Self::Snapshot
fn restore(ctx: &mut EngineCtx, snapshot: &Self::Snapshot)
fn digest(ctx: &EngineRecoveryCapture<'a>) -> EngineStateDigest
fn replay(_command: &EngineCommand, _ctx: &mut EngineCtx) -> ReplayDisposition
fn mutation_sources() -> &'static [MutationSource]
fn descriptor() -> RestartComponentDescriptor
Source§impl<'a> RestartStateComponent<EngineRecoveryCapture<'a>, EngineCtx, EngineCommand, EngineStateDigest> for PriceIvInputsComponent
impl<'a> RestartStateComponent<EngineRecoveryCapture<'a>, EngineCtx, EngineCommand, EngineStateDigest> for PriceIvInputsComponent
const NAME: RestartComponentName = RestartComponentName::PriceIvInputs
type Snapshot = EngineStateSnapshot
fn capture(ctx: &EngineRecoveryCapture<'a>) -> Self::Snapshot
fn restore(ctx: &mut EngineCtx, snapshot: &Self::Snapshot)
fn digest(ctx: &EngineRecoveryCapture<'a>) -> EngineStateDigest
fn replay(_command: &EngineCommand, _ctx: &mut EngineCtx) -> ReplayDisposition
fn mutation_sources() -> &'static [MutationSource]
fn descriptor() -> RestartComponentDescriptor
Source§impl<'a> RestartStateComponent<EngineRecoveryCapture<'a>, EngineCtx, EngineCommand, EngineStateDigest> for TierRiskLimitsComponent
impl<'a> RestartStateComponent<EngineRecoveryCapture<'a>, EngineCtx, EngineCommand, EngineStateDigest> for TierRiskLimitsComponent
const NAME: RestartComponentName = RestartComponentName::TierRiskLimits
type Snapshot = EngineStateSnapshot
fn capture(ctx: &EngineRecoveryCapture<'a>) -> Self::Snapshot
fn restore(ctx: &mut EngineCtx, snapshot: &Self::Snapshot)
fn digest(ctx: &EngineRecoveryCapture<'a>) -> EngineStateDigest
fn replay(_command: &EngineCommand, _ctx: &mut EngineCtx) -> ReplayDisposition
fn mutation_sources() -> &'static [MutationSource]
fn descriptor() -> RestartComponentDescriptor
Auto Trait Implementations§
impl Freeze for EngineCtx
impl !RefUnwindSafe for EngineCtx
impl Send for EngineCtx
impl Sync for EngineCtx
impl Unpin for EngineCtx
impl UnsafeUnpin for EngineCtx
impl !UnwindSafe for EngineCtx
Blanket Implementations§
§impl<T> AggregateExpressionMethods for T
impl<T> AggregateExpressionMethods for T
§fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
DISTINCT modifier for aggregate functions Read more§fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
ALL modifier for aggregate functions Read more§fn aggregate_filter<P>(self, f: P) -> Self::Outputwhere
P: AsExpression<Bool>,
Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,
fn aggregate_filter<P>(self, f: P) -> Self::Outputwhere
P: AsExpression<Bool>,
Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,
§fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
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
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<T> IntoSql for T
impl<T> IntoSql for T
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T, Conn> RunQueryDsl<Conn> for T
impl<T, Conn> RunQueryDsl<Conn> for T
§fn execute<'conn, 'query>(
self,
conn: &'conn mut Conn,
) -> <Conn as AsyncConnectionCore>::ExecuteFuture<'conn, 'query>where
Conn: AsyncConnectionCore + Send,
Self: ExecuteDsl<Conn> + 'query,
fn execute<'conn, 'query>(
self,
conn: &'conn mut Conn,
) -> <Conn as AsyncConnectionCore>::ExecuteFuture<'conn, 'query>where
Conn: AsyncConnectionCore + Send,
Self: ExecuteDsl<Conn> + 'query,
§fn load<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>>where
U: Send,
Conn: AsyncConnectionCore,
Self: LoadQuery<'query, Conn, U> + 'query,
fn load<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>>where
U: Send,
Conn: AsyncConnectionCore,
Self: LoadQuery<'query, Conn, U> + 'query,
§fn load_stream<'conn, 'query, U>(
self,
conn: &'conn mut Conn,
) -> Self::LoadFuture<'conn>where
Conn: AsyncConnectionCore,
U: 'conn,
Self: LoadQuery<'query, Conn, U> + 'query,
fn load_stream<'conn, 'query, U>(
self,
conn: &'conn mut Conn,
) -> Self::LoadFuture<'conn>where
Conn: AsyncConnectionCore,
U: 'conn,
Self: LoadQuery<'query, Conn, U> + 'query,
Stream] with the returned rows. Read more§fn get_result<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, LoadNext<Pin<Box<Self::Stream<'conn>>>>>where
U: Send + 'conn,
Conn: AsyncConnectionCore,
Self: LoadQuery<'query, Conn, U> + 'query,
fn get_result<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, LoadNext<Pin<Box<Self::Stream<'conn>>>>>where
U: Send + 'conn,
Conn: AsyncConnectionCore,
Self: LoadQuery<'query, Conn, U> + 'query,
§fn get_results<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>>where
U: Send,
Conn: AsyncConnectionCore,
Self: LoadQuery<'query, Conn, U> + 'query,
fn get_results<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>>where
U: Send,
Conn: AsyncConnectionCore,
Self: LoadQuery<'query, Conn, U> + 'query,
Vec with the affected rows. Read more§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.