pub struct DieselDb {
pool: Arc<AsyncDbPool>,
}Expand description
Async persistence handler. Owns a deadpool-managed diesel-async connection
pool and implements all API-path traits from hypercall_db (analytics,
integrity, liquidation, notifications, nonces, push, usernames).
Fields§
§pool: Arc<AsyncDbPool>Implementations§
Source§impl DieselDb
impl DieselDb
Sourcepub async fn get_catalog_listing_state(
&self,
underlying: &str,
expiry: i64,
) -> Result<Option<CatalogListingState>>
pub async fn get_catalog_listing_state( &self, underlying: &str, expiry: i64, ) -> Result<Option<CatalogListingState>>
Get catalog listing state for a market (underlying + expiry). This is the listing-oriented state used by CatalogManager for reference prices and extension tracking.
Sourcepub async fn insert_catalog_listing_state(
&self,
underlying: &str,
expiry: i64,
ref_price: f64,
policy_version: i32,
) -> Result<()>
pub async fn insert_catalog_listing_state( &self, underlying: &str, expiry: i64, ref_price: f64, policy_version: i32, ) -> Result<()>
Insert initial catalog state for a new market.
Sourcepub async fn update_extension_state(
&self,
underlying: &str,
expiry: i64,
ref_price: f64,
) -> Result<()>
pub async fn update_extension_state( &self, underlying: &str, expiry: i64, ref_price: f64, ) -> Result<()>
Update extension timestamp and ref price for a market.
Sourcepub async fn get_existing_strikes(
&self,
underlying: &str,
expiry: i64,
) -> Result<Vec<f64>>
pub async fn get_existing_strikes( &self, underlying: &str, expiry: i64, ) -> Result<Vec<f64>>
Get all existing strikes for a market as f64 values.
Sourcepub async fn update_trading_mode_count(
&self,
underlying: &str,
mode_str: &str,
) -> Result<usize>
pub async fn update_trading_mode_count( &self, underlying: &str, mode_str: &str, ) -> Result<usize>
Update trading_mode for instruments of a given underlying. Returns the number of rows actually changed.
Sourcepub async fn try_acquire_advisory_lock_on_conn(
&self,
conn: &mut AsyncPgConnection,
key: i64,
) -> Result<bool>
pub async fn try_acquire_advisory_lock_on_conn( &self, conn: &mut AsyncPgConnection, key: i64, ) -> Result<bool>
Try to acquire the advisory lock for CatalogManager. Returns true if lock was acquired, false if another instance holds it. Unlike the trait method, this operates on a specific connection that is passed in, preserving session-scoped lock semantics.
Sourcepub async fn release_advisory_lock_on_conn(
&self,
conn: &mut AsyncPgConnection,
key: i64,
) -> Result<()>
pub async fn release_advisory_lock_on_conn( &self, conn: &mut AsyncPgConnection, key: i64, ) -> Result<()>
Release the advisory lock on a specific connection.
Source§impl DieselDb
impl DieselDb
Sourcepub async fn new(database_url: &str, max_size: usize) -> Result<Self>
pub async fn new(database_url: &str, max_size: usize) -> Result<Self>
Build a pool with TLS (NoVerifier for sslmode=require) and verify connectivity.
Sourcepub async fn new_with_auth(auth: DbAuthConfig, max_size: usize) -> Result<Self>
pub async fn new_with_auth(auth: DbAuthConfig, max_size: usize) -> Result<Self>
Build a pool using DbAuthConfig for credential management.
In Password mode this behaves identically to Self::new. In RdsIam
mode, each new connection fetches the latest cached IAM token so
connections created after a token refresh use valid credentials.
Sourcepub async fn new_no_tls(database_url: &str, max_size: usize) -> Result<Self>
pub async fn new_no_tls(database_url: &str, max_size: usize) -> Result<Self>
Build a pool without TLS. Used for local development and tests.
Sourcepub fn with_pool(pool: Arc<AsyncDbPool>) -> Self
pub fn with_pool(pool: Arc<AsyncDbPool>) -> Self
Wrap an existing async pool (no connectivity check).
Trait Implementations§
Source§impl AnalyticsReader for DieselDb
impl AnalyticsReader for DieselDb
Source§fn get_historical_pnl<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
interval_ms: i64,
limit: usize,
include_attribution: bool,
) -> Pin<Box<dyn Future<Output = Result<Vec<HistoricalPnlPoint>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_historical_pnl<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
interval_ms: i64,
limit: usize,
include_attribution: bool,
) -> Pin<Box<dyn Future<Output = Result<Vec<HistoricalPnlPoint>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Historical equity point from DB, used by GET /historical-pnl.
When include_attribution is false, the large attribution bytea is
omitted from the SELECT.
Source§fn get_all_trades<'life0, 'async_trait>(
&'life0 self,
limit: usize,
offset: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<TradeRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_all_trades<'life0, 'async_trait>(
&'life0 self,
limit: usize,
offset: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<TradeRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_trades_by_option<'life0, 'life1, 'async_trait>(
&'life0 self,
option_id: &'life1 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<TradeRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_trades_by_option<'life0, 'life1, 'async_trait>(
&'life0 self,
option_id: &'life1 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<TradeRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_trades_by_underlying<'life0, 'life1, 'async_trait>(
&'life0 self,
underlying: &'life1 str,
limit: usize,
offset: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<TradeRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_trades_by_underlying<'life0, 'life1, 'async_trait>(
&'life0 self,
underlying: &'life1 str,
limit: usize,
offset: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<TradeRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_trades_by_account<'life0, 'life1, 'async_trait>(
&'life0 self,
account: &'life1 WalletAddress,
limit: usize,
offset: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<TradeRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_trades_by_account<'life0, 'life1, 'async_trait>(
&'life0 self,
account: &'life1 WalletAddress,
limit: usize,
offset: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<TradeRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_trades_for_symbol_in_range<'life0, 'life1, 'async_trait>(
&'life0 self,
symbol: &'life1 str,
start_time_ms: i64,
end_time_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<TradeRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_trades_for_symbol_in_range<'life0, 'life1, 'async_trait>(
&'life0 self,
symbol: &'life1 str,
start_time_ms: i64,
end_time_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<TradeRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_fills_by_account<'life0, 'life1, 'async_trait>(
&'life0 self,
account: &'life1 WalletAddress,
limit: usize,
offset: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<FillRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_fills_by_account<'life0, 'life1, 'async_trait>(
&'life0 self,
account: &'life1 WalletAddress,
limit: usize,
offset: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<FillRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_orders_by_account<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
account: &'life1 WalletAddress,
status: Option<&'life2 str>,
limit: usize,
offset: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<OrderRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_orders_by_account<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
account: &'life1 WalletAddress,
status: Option<&'life2 str>,
limit: usize,
offset: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<OrderRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn trade_history_exists_for_symbol<'life0, 'life1, 'async_trait>(
&'life0 self,
symbol: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn trade_history_exists_for_symbol<'life0, 'life1, 'async_trait>(
&'life0 self,
symbol: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn historical_theo_history_exists_for_symbol<'life0, 'life1, 'async_trait>(
&'life0 self,
symbol: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn historical_theo_history_exists_for_symbol<'life0, 'life1, 'async_trait>(
&'life0 self,
symbol: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_historical_theos<'life0, 'life1, 'async_trait>(
&'life0 self,
symbol: &'life1 str,
interval_ms: i64,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<HistoricalTheoPoint>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_historical_theos<'life0, 'life1, 'async_trait>(
&'life0 self,
symbol: &'life1 str,
interval_ms: i64,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<HistoricalTheoPoint>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_historical_theos_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
symbols: &'life1 [String],
interval_ms: i64,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, Vec<HistoricalTheoPoint>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_historical_theos_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
symbols: &'life1 [String],
interval_ms: i64,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, Vec<HistoricalTheoPoint>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_vol_surface_history<'life0, 'life1, 'async_trait>(
&'life0 self,
underlying: &'life1 str,
interval_ms: i64,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<VolSurfaceSnapshot>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_vol_surface_history<'life0, 'life1, 'async_trait>(
&'life0 self,
underlying: &'life1 str,
interval_ms: i64,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<VolSurfaceSnapshot>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn load_bbo_snapshots_since<'life0, 'async_trait>(
&'life0 self,
cutoff_ts: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<BboSnapshotRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn load_bbo_snapshots_since<'life0, 'async_trait>(
&'life0 self,
cutoff_ts: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<BboSnapshotRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_bbo_reference_asks<'life0, 'life1, 'async_trait>(
&'life0 self,
symbols: &'life1 [String],
cutoff_ts: i64,
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, BboReferenceData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_bbo_reference_asks<'life0, 'life1, 'async_trait>(
&'life0 self,
symbols: &'life1 [String],
cutoff_ts: i64,
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, BboReferenceData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_settlement_payouts<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
limit: i64,
offset: i64,
symbol: Option<&'life2 str>,
ledger_applied: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<(Vec<SettlementPayoutRecord>, i64)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_settlement_payouts<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
limit: i64,
offset: i64,
symbol: Option<&'life2 str>,
ledger_applied: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<(Vec<SettlementPayoutRecord>, i64)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn get_seen_settlement_payout_ids<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
payout_ids: &'life2 [i64],
) -> Pin<Box<dyn Future<Output = Result<HashSet<i64>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_seen_settlement_payout_ids<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
payout_ids: &'life2 [i64],
) -> Pin<Box<dyn Future<Output = Result<HashSet<i64>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn get_client_ids_by_order_ids<'life0, 'life1, 'async_trait>(
&'life0 self,
order_ids: &'life1 [i64],
) -> Pin<Box<dyn Future<Output = Result<HashMap<i64, Option<String>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_client_ids_by_order_ids<'life0, 'life1, 'async_trait>(
&'life0 self,
order_ids: &'life1 [i64],
) -> Pin<Box<dyn Future<Output = Result<HashMap<i64, Option<String>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_theo_marks_at_timestamp<'life0, 'life1, 'async_trait>(
&'life0 self,
symbols: &'life1 [String],
timestamp_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, Decimal>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_theo_marks_at_timestamp<'life0, 'life1, 'async_trait>(
&'life0 self,
symbols: &'life1 [String],
timestamp_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, Decimal>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_deposit_withdraw_events<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
) -> Pin<Box<dyn Future<Output = Result<Vec<LedgerEventTimeDelta>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_deposit_withdraw_events<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
) -> Pin<Box<dyn Future<Output = Result<Vec<LedgerEventTimeDelta>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_settled_pnl_by_symbol<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
before_ts_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, Decimal)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_settled_pnl_by_symbol<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
before_ts_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, Decimal)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_fills_since_timestamp<'life0, 'async_trait>(
&'life0 self,
cutoff_timestamp: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<FillBackfillRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_fills_since_timestamp<'life0, 'async_trait>(
&'life0 self,
cutoff_timestamp: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<FillBackfillRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl AnalyticsWriter for DieselDb
impl AnalyticsWriter for DieselDb
Source§fn upsert_historical_pnl_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
interval_ms: i64,
timestamp_ms: i64,
snapshots: &'life1 [(WalletAddress, Decimal, Option<Vec<u8>>)],
max_periods: i64,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn upsert_historical_pnl_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
interval_ms: i64,
timestamp_ms: i64,
snapshots: &'life1 [(WalletAddress, Decimal, Option<Vec<u8>>)],
max_periods: i64,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
max_periods.Source§fn upsert_historical_theo_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
interval_ms: i64,
timestamp_ms: i64,
snapshots: &'life1 [(String, Decimal)],
max_periods: i64,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn upsert_historical_theo_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
interval_ms: i64,
timestamp_ms: i64,
snapshots: &'life1 [(String, Decimal)],
max_periods: i64,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
max_periods.Source§fn upsert_vol_surface_snapshot<'life0, 'life1, 'async_trait>(
&'life0 self,
interval_ms: i64,
timestamp_ms: i64,
underlying: &'life1 str,
surface_json: Value,
max_periods: i64,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn upsert_vol_surface_snapshot<'life0, 'life1, 'async_trait>(
&'life0 self,
interval_ms: i64,
timestamp_ms: i64,
underlying: &'life1 str,
surface_json: Value,
max_periods: i64,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
max_periods.Source§fn upsert_bbo_snapshots<'life0, 'life1, 'async_trait>(
&'life0 self,
snapshot_ts: i64,
snapshots: &'life1 [NewBboSnapshotInput],
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn upsert_bbo_snapshots<'life0, 'life1, 'async_trait>(
&'life0 self,
snapshot_ts: i64,
snapshots: &'life1 [NewBboSnapshotInput],
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn delete_bbo_snapshots_older_than<'life0, 'async_trait>(
&'life0 self,
cutoff_ts: i64,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_bbo_snapshots_older_than<'life0, 'async_trait>(
&'life0 self,
cutoff_ts: i64,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
cutoff_ts. Returns count deleted.Source§fn mark_settlement_payouts_seen<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
payout_ids: &'life2 [i64],
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn mark_settlement_payouts_seen<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
payout_ids: &'life2 [i64],
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl AsyncDirectiveOutboxReader for DieselDb
impl AsyncDirectiveOutboxReader for DieselDb
Source§fn directive_outbox_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
directive_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn directive_outbox_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
directive_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_directive_status<'life0, 'life1, 'async_trait>(
&'life0 self,
directive_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<DirectiveStatusRow>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_directive_status<'life0, 'life1, 'async_trait>(
&'life0 self,
directive_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<DirectiveStatusRow>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_withdrawal_history<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
limit: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<DirectiveStatusRow>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_withdrawal_history<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
limit: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<DirectiveStatusRow>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn list_directive_outbox_delivery_metrics<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<DirectiveOutboxDeliveryMetricsRow>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_directive_outbox_delivery_metrics<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<DirectiveOutboxDeliveryMetricsRow>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn list_recent_directive_outbox_rows<'life0, 'async_trait>(
&'life0 self,
limit: i64,
offset: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<DirectiveOutboxRecentRow>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_recent_directive_outbox_rows<'life0, 'async_trait>(
&'life0 self,
limit: i64,
offset: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<DirectiveOutboxRecentRow>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl AsyncDirectiveOutboxWriter for DieselDb
impl AsyncDirectiveOutboxWriter for DieselDb
Source§fn record_directive_submitter_submission<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request_id: &'life1 str,
submitter_address: &'life2 Address,
submitter_nonce: u64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn record_directive_submitter_submission<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request_id: &'life1 str,
submitter_address: &'life2 Address,
submitter_nonce: u64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn persist_directive_transaction_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
request_id: &'life1 str,
status: TransactionStatus,
tx_hash: Option<&'life2 str>,
error: Option<&'life3 str>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn persist_directive_transaction_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
request_id: &'life1 str,
status: TransactionStatus,
tx_hash: Option<&'life2 str>,
error: Option<&'life3 str>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Source§impl AsyncTransactionSubmitterStore for DieselDb
impl AsyncTransactionSubmitterStore for DieselDb
fn max_nonce_for_submitter<'life0, 'life1, 'async_trait>(
&'life0 self,
submitter: &'life1 SubmitterId,
) -> Pin<Box<dyn Future<Output = Result<Option<u64>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn record_submission<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
record: &'life1 SubmissionRecord,
attempts: &'life2 [SubmissionAttemptRecord],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn update_submission_status<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
submitter: &'life1 SubmitterId,
nonce: SubmittedNonce,
status: SubmissionStatus,
primary_tx_hash: Option<&'life2 str>,
terminal_error: Option<&'life3 str>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn list_pending_submissions<'life0, 'async_trait>(
&'life0 self,
after_submission_id: i64,
limit: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<PendingSubmissionRow>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl BootstrapReader for DieselDb
impl BootstrapReader for DieselDb
Source§fn get_all_active_instruments<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<InstrumentRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_all_active_instruments<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<InstrumentRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl CatalogReader for DieselDb
impl CatalogReader for DieselDb
Source§fn get_market_catalog_state<'life0, 'life1, 'async_trait>(
&'life0 self,
underlying: &'life1 str,
expiry: i64,
) -> Pin<Box<dyn Future<Output = Result<Option<MarketCatalogState>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_market_catalog_state<'life0, 'life1, 'async_trait>(
&'life0 self,
underlying: &'life1 str,
expiry: i64,
) -> Pin<Box<dyn Future<Output = Result<Option<MarketCatalogState>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_instruments_for_settlement<'life0, 'life1, 'async_trait>(
&'life0 self,
underlying: &'life1 str,
expiry: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<CatalogInstrument>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_instruments_for_settlement<'life0, 'life1, 'async_trait>(
&'life0 self,
underlying: &'life1 str,
expiry: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<CatalogInstrument>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_distinct_strikes<'life0, 'life1, 'async_trait>(
&'life0 self,
underlying: &'life1 str,
expiry: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<Decimal>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_distinct_strikes<'life0, 'life1, 'async_trait>(
&'life0 self,
underlying: &'life1 str,
expiry: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<Decimal>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_markets_for_underlying<'life0, 'life1, 'async_trait>(
&'life0 self,
underlying: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, i64)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_markets_for_underlying<'life0, 'life1, 'async_trait>(
&'life0 self,
underlying: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, i64)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_instruments_count<'life0, 'life1, 'async_trait>(
&'life0 self,
underlying: &'life1 str,
expiry: i64,
) -> Pin<Box<dyn Future<Output = Result<i32>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_instruments_count<'life0, 'life1, 'async_trait>(
&'life0 self,
underlying: &'life1 str,
expiry: i64,
) -> Pin<Box<dyn Future<Output = Result<i32>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl CatalogWriter for DieselDb
impl CatalogWriter for DieselDb
Source§fn upsert_market_catalog_state<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 MarketCatalogState,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn upsert_market_catalog_state<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 MarketCatalogState,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
last_extension_at and last_extension_ref_price are updated – the
initial listing fields (ref_price_at_listing, listed_at,
listing_policy_version) are immutable after creation.Source§fn update_trading_mode_for_underlying<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
underlying: &'life1 str,
trading_mode: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn update_trading_mode_for_underlying<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
underlying: &'life1 str,
trading_mode: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl CompetitionReader for DieselDb
impl CompetitionReader for DieselDb
Source§fn list_competitions<'life0, 'life1, 'async_trait>(
&'life0 self,
state_filter: Option<&'life1 str>,
from_ts_ms: Option<i64>,
to_ts_ms: Option<i64>,
now_ts_ms: i64,
limit: i64,
offset: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<CompetitionRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_competitions<'life0, 'life1, 'async_trait>(
&'life0 self,
state_filter: Option<&'life1 str>,
from_ts_ms: Option<i64>,
to_ts_ms: Option<i64>,
now_ts_ms: i64,
limit: i64,
offset: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<CompetitionRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_competition_by_id<'life0, 'async_trait>(
&'life0 self,
competition_id: i64,
) -> Pin<Box<dyn Future<Output = Result<Option<CompetitionRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_competition_by_id<'life0, 'async_trait>(
&'life0 self,
competition_id: i64,
) -> Pin<Box<dyn Future<Output = Result<Option<CompetitionRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_active_competition<'life0, 'async_trait>(
&'life0 self,
now_ts_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<Option<CompetitionRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_active_competition<'life0, 'async_trait>(
&'life0 self,
now_ts_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<Option<CompetitionRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_latest_completed_competition<'life0, 'async_trait>(
&'life0 self,
now_ts_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<Option<CompetitionRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_latest_completed_competition<'life0, 'async_trait>(
&'life0 self,
now_ts_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<Option<CompetitionRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_competitions_to_finalize<'life0, 'async_trait>(
&'life0 self,
now_ts_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<CompetitionRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_competitions_to_finalize<'life0, 'async_trait>(
&'life0 self,
now_ts_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<CompetitionRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_finalized_stats<'life0, 'async_trait>(
&'life0 self,
competition_id: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<CompetitionFinalStatsRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_finalized_stats<'life0, 'async_trait>(
&'life0 self,
competition_id: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<CompetitionFinalStatsRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_competition_fills_before<'life0, 'async_trait>(
&'life0 self,
cutoff_ts_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<CompetitionFillRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_competition_fills_before<'life0, 'async_trait>(
&'life0 self,
cutoff_ts_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<CompetitionFillRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_historical_theo_marks<'life0, 'life1, 'async_trait>(
&'life0 self,
symbols: &'life1 [String],
cutoff_ts_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<TheoMarkRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_historical_theo_marks<'life0, 'life1, 'async_trait>(
&'life0 self,
symbols: &'life1 [String],
cutoff_ts_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<TheoMarkRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_display_usernames_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet_strings: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<Vec<WalletUsernameRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_display_usernames_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet_strings: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<Vec<WalletUsernameRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_display_username<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_display_username<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_profile_image_url<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_profile_image_url<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn compute_ledger_profile_stats<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
now_ts_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<WalletLedgerStats>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn compute_ledger_profile_stats<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
now_ts_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<WalletLedgerStats>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_account_first_seen_ts_ms<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
) -> Pin<Box<dyn Future<Output = Result<Option<i64>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_account_first_seen_ts_ms<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
) -> Pin<Box<dyn Future<Output = Result<Option<i64>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_realized_pnl_by_symbol<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
window_start: Option<i64>,
window_end: Option<i64>,
) -> Pin<Box<dyn Future<Output = Result<Vec<SymbolPnlRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_realized_pnl_by_symbol<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
window_start: Option<i64>,
window_end: Option<i64>,
) -> Pin<Box<dyn Future<Output = Result<Vec<SymbolPnlRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_profile_trade_history<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
window_start: Option<i64>,
window_end: Option<i64>,
from_ts_ms: Option<i64>,
to_ts_ms: Option<i64>,
symbol: Option<&'life2 str>,
limit: i64,
offset: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<ProfileFillRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_profile_trade_history<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
window_start: Option<i64>,
window_end: Option<i64>,
from_ts_ms: Option<i64>,
to_ts_ms: Option<i64>,
symbol: Option<&'life2 str>,
limit: i64,
offset: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<ProfileFillRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl CompetitionWriter for DieselDb
impl CompetitionWriter for DieselDb
Source§fn create_competition<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 CompetitionUpsertInput,
) -> Pin<Box<dyn Future<Output = Result<CompetitionRecord, CompetitionWriteError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_competition<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 CompetitionUpsertInput,
) -> Pin<Box<dyn Future<Output = Result<CompetitionRecord, CompetitionWriteError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn update_competition<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'async_trait>(
&'life0 self,
competition_id: i64,
name: &'life1 str,
description: Option<&'life2 str>,
rules_url: Option<&'life3 str>,
rules_content: Option<&'life4 str>,
win_conditions: &'life5 [String],
primary_win_condition: &'life6 str,
start_ts_ms: i64,
end_ts_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<CompetitionRecord, CompetitionWriteError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
fn update_competition<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'async_trait>(
&'life0 self,
competition_id: i64,
name: &'life1 str,
description: Option<&'life2 str>,
rules_url: Option<&'life3 str>,
rules_content: Option<&'life4 str>,
win_conditions: &'life5 [String],
primary_win_condition: &'life6 str,
start_ts_ms: i64,
end_ts_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<CompetitionRecord, CompetitionWriteError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
Source§fn delete_competition<'life0, 'async_trait>(
&'life0 self,
competition_id: i64,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_competition<'life0, 'async_trait>(
&'life0 self,
competition_id: i64,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn record_competition_fill<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 CompetitionFillInput,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn record_competition_fill<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 CompetitionFillInput,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn finalize_competition<'life0, 'life1, 'async_trait>(
&'life0 self,
competition_id: i64,
stats: &'life1 [CompetitionFinalStatsInput],
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn finalize_competition<'life0, 'life1, 'async_trait>(
&'life0 self,
competition_id: i64,
stats: &'life1 [CompetitionFinalStatsInput],
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn set_profile_image_url<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
profile_image_url: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn set_profile_image_url<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
profile_image_url: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl FaucetWriter for DieselDb
impl FaucetWriter for DieselDb
Source§fn persist_faucet_credit<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
amount: Decimal,
limit: Decimal,
window_start_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<FaucetCreditResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn persist_faucet_credit<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
amount: Decimal,
limit: Decimal,
window_start_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<FaucetCreditResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl IntegrityReader for DieselDb
impl IntegrityReader for DieselDb
Source§fn get_integrity_query_results<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = IntegrityQueryResults> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_integrity_query_results<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = IntegrityQueryResults> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_settlement_integrity<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(i64, i64, i64, Decimal)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_settlement_integrity<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(i64, i64, i64, Decimal)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
get_integrity_query_results.Source§fn get_open_interest_by_underlying<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, Decimal)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_open_interest_by_underlying<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, Decimal)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
get_integrity_query_results.Source§impl LiquidationReader for DieselDb
impl LiquidationReader for DieselDb
Source§fn get_liquidation_state<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
) -> Pin<Box<dyn Future<Output = Result<Option<LiquidationStateRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_liquidation_state<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
) -> Pin<Box<dyn Future<Output = Result<Option<LiquidationStateRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_all_liquidation_states<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<LiquidationStateRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_all_liquidation_states<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<LiquidationStateRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_liquidation_history<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
limit: i64,
offset: i64,
) -> Pin<Box<dyn Future<Output = Result<(Vec<LiquidationHistoryRecord>, i64)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_liquidation_history<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
limit: i64,
offset: i64,
) -> Pin<Box<dyn Future<Output = Result<(Vec<LiquidationHistoryRecord>, i64)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_recent_liquidation_history<'life0, 'async_trait>(
&'life0 self,
limit: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<LiquidationHistoryRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_recent_liquidation_history<'life0, 'async_trait>(
&'life0 self,
limit: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<LiquidationHistoryRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_liquidation_auction<'life0, 'life1, 'async_trait>(
&'life0 self,
auction_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<LiquidationAuctionRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_liquidation_auction<'life0, 'life1, 'async_trait>(
&'life0 self,
auction_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<LiquidationAuctionRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_max_liquidation_observed_block<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<u64>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_max_liquidation_observed_block<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<u64>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
last_observed_block across all auction rows.fn get_active_auctions_for_wallet<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
) -> Pin<Box<dyn Future<Output = Result<Vec<LiquidationAuctionRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl LiquidationWriter for DieselDb
impl LiquidationWriter for DieselDb
Source§fn save_liquidation_state<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 LiquidationStateRecord,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_liquidation_state<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 LiquidationStateRecord,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_liquidation_state<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 WalletAddress,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn insert_liquidation_history<'life0, 'life1, 'async_trait>(
&'life0 self,
entry: &'life1 LiquidationHistoryRecord,
) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn insert_liquidation_history<'life0, 'life1, 'async_trait>(
&'life0 self,
entry: &'life1 LiquidationHistoryRecord,
) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn create_liquidation_auction<'life0, 'life1, 'async_trait>(
&'life0 self,
auction: &'life1 LiquidationAuctionRecord,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_liquidation_auction<'life0, 'life1, 'async_trait>(
&'life0 self,
auction: &'life1 LiquidationAuctionRecord,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn update_liquidation_auction<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
auction_id: &'life1 str,
updates: &'life2 LiquidationAuctionUpdate,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn update_liquidation_auction<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
auction_id: &'life1 str,
updates: &'life2 LiquidationAuctionUpdate,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn claim_and_apply_liquidation_bonus<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
winner: &'life1 WalletAddress,
liquidated_wallet: &'life2 WalletAddress,
auction_id: &'life3 str,
resolution_tx_hash: &'life4 str,
bonus: Decimal,
event_ts_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<LiquidationBonusApplyResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn claim_and_apply_liquidation_bonus<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
winner: &'life1 WalletAddress,
liquidated_wallet: &'life2 WalletAddress,
auction_id: &'life3 str,
resolution_tx_hash: &'life4 str,
bonus: Decimal,
event_ts_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<LiquidationBonusApplyResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Source§impl NonceReader for DieselDb
impl NonceReader for DieselDb
Source§fn get_rsm_signer_nonce<'life0, 'life1, 'async_trait>(
&'life0 self,
signer: &'life1 WalletAddress,
) -> Pin<Box<dyn Future<Output = Result<Option<RsmSignerNonceRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_rsm_signer_nonce<'life0, 'life1, 'async_trait>(
&'life0 self,
signer: &'life1 WalletAddress,
) -> Pin<Box<dyn Future<Output = Result<Option<RsmSignerNonceRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl NonceWriter for DieselDb
impl NonceWriter for DieselDb
Source§fn save_rsm_signer_nonce<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 RsmSignerNonceRecord,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_rsm_signer_nonce<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 RsmSignerNonceRecord,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn reserve_next_rsm_signer_nonce<'life0, 'life1, 'async_trait>(
&'life0 self,
signer: &'life1 WalletAddress,
initial_nonce: u64,
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn claim_rsm_signer_request<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
request_id: &'life1 str,
signer: &'life2 WalletAddress,
account: &'life3 WalletAddress,
action: &'life4 [u8],
initial_nonce: u64,
) -> Pin<Box<dyn Future<Output = Result<RsmSignerRequestClaim>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn claim_rsm_signer_request<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
request_id: &'life1 str,
signer: &'life2 WalletAddress,
account: &'life3 WalletAddress,
action: &'life4 [u8],
initial_nonce: u64,
) -> Pin<Box<dyn Future<Output = Result<RsmSignerRequestClaim>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Source§fn complete_rsm_signer_request<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
request_id: &'life1 str,
directive: &'life2 [u8],
signature: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<RsmSignerRequestRecord>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn complete_rsm_signer_request<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
request_id: &'life1 str,
directive: &'life2 [u8],
signature: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<RsmSignerRequestRecord>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Source§impl NotificationReader for DieselDb
impl NotificationReader for DieselDb
Source§fn list_notifications<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
before_id: Option<i64>,
limit: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<NotificationRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_notifications<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
before_id: Option<i64>,
limit: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<NotificationRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
before_id is set, only return notifications with id < before_id.Source§impl NotificationWriter for DieselDb
impl NotificationWriter for DieselDb
Source§fn insert_notification<'life0, 'async_trait>(
&'life0 self,
input: NewNotificationInput,
) -> Pin<Box<dyn Future<Output = Result<NotificationRecord>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn insert_notification<'life0, 'async_trait>(
&'life0 self,
input: NewNotificationInput,
) -> Pin<Box<dyn Future<Output = Result<NotificationRecord>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn mark_notifications_read<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
ids: &'life2 [i64],
now: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn mark_notifications_read<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
ids: &'life2 [i64],
now: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn mark_all_notifications_read<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
now: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn mark_all_notifications_read<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
now: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl PmSettlementProjectionReader for DieselDb
impl PmSettlementProjectionReader for DieselDb
fn list_pm_settlement_pools<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<PmSettlementPoolProjection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn pm_settlement_pool_gate_counts<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<PmSettlementPoolGateCounts>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_pm_settlement_accounts<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<PmSettlementAccountProjection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn pm_settlement_account_gate_counts<'life0, 'async_trait>(
&'life0 self,
now_ms: i64,
) -> Pin<Box<dyn Future<Output = Result<PmSettlementAccountGateCounts>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_pm_settlement_events<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<PmSettlementEventProjection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_pm_settlement_interest_events<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<PmSettlementInterestEventProjection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_pm_settlement_repayment_events<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<PmSettlementRepaymentEventProjection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_pm_recovery_plans<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<PmRecoveryPlanProjection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_pm_recovery_actions<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<PmRecoveryActionProjection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn pm_recovery_action_gate_counts<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<PmRecoveryActionGateCounts>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl PushSubscriptionReader for DieselDb
impl PushSubscriptionReader for DieselDb
Source§fn get_push_subscriptions<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<PushSubscriptionRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_push_subscriptions<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<PushSubscriptionRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn count_push_subscriptions<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn count_push_subscriptions<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn push_subscription_exists<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
endpoint: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn push_subscription_exists<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
endpoint: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl PushSubscriptionWriter for DieselDb
impl PushSubscriptionWriter for DieselDb
Source§fn upsert_push_subscription<'life0, 'async_trait>(
&'life0 self,
input: UpsertPushSubscriptionInput,
) -> Pin<Box<dyn Future<Output = Result<PushSubscriptionRecord>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn upsert_push_subscription<'life0, 'async_trait>(
&'life0 self,
input: UpsertPushSubscriptionInput,
) -> Pin<Box<dyn Future<Output = Result<PushSubscriptionRecord>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn update_push_preferences<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
endpoint: &'life2 str,
preferences: Value,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn update_push_preferences<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
endpoint: &'life2 str,
preferences: Value,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn delete_push_subscription<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
endpoint: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn delete_push_subscription<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
endpoint: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl UsernameReader for DieselDb
impl UsernameReader for DieselDb
Source§fn get_username_by_wallet<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<UsernameRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_username_by_wallet<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<UsernameRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_username_by_name<'life0, 'life1, 'async_trait>(
&'life0 self,
username: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<UsernameRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_username_by_name<'life0, 'life1, 'async_trait>(
&'life0 self,
username: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<UsernameRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl UsernameWriter for DieselDb
impl UsernameWriter for DieselDb
Source§fn set_username<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
username: &'life2 str,
now: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<(UsernameRecord, Option<String>), UsernameWriteError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn set_username<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
username: &'life2 str,
now: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<(UsernameRecord, Option<String>), UsernameWriteError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
UsernameWriteError::UniqueViolation when the username is taken.Source§fn delete_username<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<UsernameRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_username<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<UsernameRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl ValidatorRsmStateAsyncReader for DieselDb
impl ValidatorRsmStateAsyncReader for DieselDb
fn get_validator_rsm_root_summary<'life0, 'async_trait>(
&'life0 self,
environment: ValidatorRsmEnvironment,
version: u64,
) -> Pin<Box<dyn Future<Output = Result<Option<ValidatorRsmRootSummary>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_validator_rsm_current_state<'life0, 'async_trait>(
&'life0 self,
environment: ValidatorRsmEnvironment,
) -> Pin<Box<dyn Future<Output = Result<Option<ValidatorRsmCurrentState>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_validator_rsm_current_root_summary<'life0, 'async_trait>(
&'life0 self,
environment: ValidatorRsmEnvironment,
) -> Pin<Box<dyn Future<Output = Result<Option<ValidatorRsmRootSummary>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_rsm_block_by_height<'life0, 'async_trait>(
&'life0 self,
environment: ValidatorRsmEnvironment,
height: u64,
) -> Pin<Box<dyn Future<Output = Result<Option<RsmBlockView>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_rsm_block_by_hash<'life0, 'async_trait>(
&'life0 self,
environment: ValidatorRsmEnvironment,
hash: [u8; 32],
) -> Pin<Box<dyn Future<Output = Result<Option<RsmBlockView>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_latest_rsm_block<'life0, 'async_trait>(
&'life0 self,
environment: ValidatorRsmEnvironment,
) -> Pin<Box<dyn Future<Output = Result<Option<RsmBlockView>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_rsm_blocks<'life0, 'async_trait>(
&'life0 self,
environment: ValidatorRsmEnvironment,
from_height: Option<u64>,
limit: u32,
) -> Pin<Box<dyn Future<Output = Result<Vec<RsmBlockView>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_rsm_block_commands<'life0, 'async_trait>(
&'life0 self,
environment: ValidatorRsmEnvironment,
height: u64,
) -> Pin<Box<dyn Future<Output = Result<Vec<RsmBlockCommand>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_rsm_block_data<'life0, 'async_trait>(
&'life0 self,
environment: ValidatorRsmEnvironment,
height: u64,
) -> Pin<Box<dyn Future<Output = Result<Option<RsmBlockData>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations§
impl Freeze for DieselDb
impl !RefUnwindSafe for DieselDb
impl Send for DieselDb
impl Sync for DieselDb
impl Unpin for DieselDb
impl UnsafeUnpin for DieselDb
impl !UnwindSafe for DieselDb
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> 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> 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 more§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> 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.