pub struct CacheBundle {
pub qot_cache: Arc<QotCache>,
pub trd_cache: Arc<TrdCache>,
pub static_cache: Arc<StaticDataCache>,
pub login_cache: Arc<LoginCache>,
pub user_profile_cache: Arc<UserProfileCache>,
pub qot_right_cache: Arc<QotRightCache>,
pub risk_free_rate_cache: Arc<RiskFreeRateCache>,
pub option_chain_statistic_cache: Arc<OptionChainStatisticCache>,
pub price_reminder_cooldown: Arc<PriceReminderCooldownCache>,
pub crypto_exchange_cache: Arc<CryptoExchangeCache>,
pub stock_db: Arc<ArcSwapOption<StockDb>>,
}Fields§
§qot_cache: Arc<QotCache>§trd_cache: Arc<TrdCache>§static_cache: Arc<StaticDataCache>§login_cache: Arc<LoginCache>§user_profile_cache: Arc<UserProfileCache>CMD7506 用户昵称/头像缓存。GetUserInfo Basic 对齐 C++
NNProto_UserProfile::QueryProfile -> INNData_UserProfile.
qot_right_cache: Arc<QotRightCache>行情权限缓存 (CMD 6024 响应).
risk_free_rate_cache: Arc<RiskFreeRateCache>CMD20231 无风险利率缓存。C++ 在登录成功后刷新
INNData_Qot_RiskFreeRate,3255/3257 break-even 概率读取该快照。
option_chain_statistic_cache: Arc<OptionChainStatisticCache>CMD20675 期权链统计缓存。C++ 3255/3257 在 snapshot 前拉链统计, break-even 概率优先读 strike-date IV,再读 underlying IV/HV。
price_reminder_cooldown: Arc<PriceReminderCooldownCache>PriceReminder 数量上限 cooldown cache.
抽自 SetPriceReminder handler, 对齐 C++ INNData_PriceReminder 的
cooldown 状态机:total limit 与 per-stock-type limit 均为 ack-then-commit.
crypto_exchange_cache: Arc<CryptoExchangeCache>Crypto LV2 多交易所缓存,供 crypto order book handler 与 push parser 共享.
stock_db: Arc<ArcSwapOption<StockDb>>C++ SecListDBHelper 等价的本地静态证券 SQLite 句柄。
stock-list updater 和 GetReference(Warrant) 共享同一实例,避免 handler 重新打开 SQLite 形成独立视图。
Implementations§
Source§impl CacheBundle
impl CacheBundle
Trait Implementations§
Source§impl Clone for CacheBundle
impl Clone for CacheBundle
Source§fn clone(&self) -> CacheBundle
fn clone(&self) -> CacheBundle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CacheBundle
impl !RefUnwindSafe for CacheBundle
impl Send for CacheBundle
impl Sync for CacheBundle
impl Unpin for CacheBundle
impl UnsafeUnpin for CacheBundle
impl !UnwindSafe for CacheBundle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more