#[non_exhaustive]pub enum CoverageException {
ResponseFiltered,
PushOnly,
MetaNoAccount,
InternalOnly,
}Expand description
v1.4.106 ζ28 redo (codex 0532 F4 P3): typed coverage exception kind
— 替代无类型 EXPLICIT_NO_BODY_AWARE_PROTOS 数组. 每个 exception 必须
显式分类, 让 “为什么这个 proto 不走 body_aware” 的意图保留在代码里
(而非靠注释推).
4 个 variant 涵盖所有 “非 body-aware” 场景:
Self::ResponseFiltered— request 无 acc_id, 但 response 含 acc_list[] 走 [futu_auth_pipeline::FilterRegistry] (e.g. 2001 TRD_GET_ACC_LIST).Self::PushOnly— push event 不是 request, 无 request-side body (e.g. 2208 TRD_UPDATE_ORDER / 2218 TRD_UPDATE_ORDER_FILL / 2240 TRD_NOTIFY). pipeline 不应 dispatch push proto 作 request, 但 scope check 仍跑.Self::MetaNoAccount— meta query 无 acc_id 概念 (e.g. 1326 GET_TOKEN_STATE NN/MM token 状态).Self::InternalOnly— daemon-internal proto_id (高位 0x8000_0000 bit), 不应从公开 surface 进入 (gRPC / raw WS / raw TCP). v1.4.106 codex 0532 F3 public surface 显式 reject (见is_internal_proto_id).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for CoverageException
impl Clone for CoverageException
Source§fn clone(&self) -> CoverageException
fn clone(&self) -> CoverageException
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 moreSource§impl Debug for CoverageException
impl Debug for CoverageException
Source§impl PartialEq for CoverageException
impl PartialEq for CoverageException
impl Copy for CoverageException
impl Eq for CoverageException
impl StructuralPartialEq for CoverageException
Auto Trait Implementations§
impl Freeze for CoverageException
impl RefUnwindSafe for CoverageException
impl Send for CoverageException
impl Sync for CoverageException
impl Unpin for CoverageException
impl UnsafeUnpin for CoverageException
impl UnwindSafe for CoverageException
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more