pub struct QotRightCache { /* private fields */ }Implementations§
Source§impl QotRightCache
impl QotRightCache
pub fn new() -> Self
pub fn get(&self) -> QotRightData
pub fn freshness(&self) -> QotRightFreshness
pub fn is_fresh(&self) -> bool
pub fn meta_snapshot(&self) -> QotRightStateMeta
pub fn set_orderbook_depths( &self, hk_option_depth: Option<u32>, hk_future_depth: Option<u32>, )
pub fn mark_stale(&self, reason: &str)
pub fn advance_login_epoch(&self, new_epoch: u64, user_id: Option<u64>)
pub fn advance_backend_generation(&self, new_generation: u64)
pub fn mark_pending(&self)
pub fn mark_fresh(&self)
pub fn mark_failed(&self, error: impl Into<String>)
pub fn last_refresh_at_ms(&self) -> i64
pub fn set_pushed_quote_change_notify(&self, notify: PushedQuoteChangeNotify)
pub fn pushed_quote_change_notify(&self) -> Option<PushedQuoteChangeNotify>
pub fn apply_6651_changes(&self, items: &[(i32, i32, i32)]) -> Vec<i32>
pub fn apply_direct_auth_changes(&self, items: &[(i32, u32)]) -> Vec<i32>
Sourcepub fn update_from_backend(&self, update: QotRightBackendUpdate)
pub fn update_from_backend(&self, update: QotRightBackendUpdate)
从后端 CMD 6024 响应更新权限数据.
v1.4.106 codex 1217 F2 [P1] (5月1日): us_future_detail 子字段存在 =
覆盖 (含值=0). 之前 if cme > 0 跳过 0 让 LV1 → 0 (No) 实质降级被
silent 保留;但 C++ 逐个 has_open_api_*_auth() 判断,父字段存在不代表
未返回的子市场可按 0 覆盖。
v1.4.106 codex 1217 F1: apply 成功后自动 mark Fresh.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for QotRightCache
impl !RefUnwindSafe for QotRightCache
impl Send for QotRightCache
impl Sync for QotRightCache
impl Unpin for QotRightCache
impl UnsafeUnpin for QotRightCache
impl UnwindSafe for QotRightCache
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