enum TradePushDecode {
NotTrade,
Decoded {
acc_id: u64,
trd_market: i32,
},
DecodeFailed,
}Expand description
v1.4.106 codex 0932 F6 [P2]: trade push 的解码结果 + 分发决策.
Variants§
NotTrade
proto_id 不在 trade set — 非 trade push (quote / notify / 其他).
Decoded
trade push body decode 成功 — 含 (acc_id, trd_market).
DecodeFailed
trade push body decode 失败 — caller 必须按 trade 语义处理 (event_type=“trade”)
但无 acc_id / market gate 信息. restricted key 应 drop, unrestricted
应透传带 decode_status="failed".
Trait Implementations§
Source§impl Clone for TradePushDecode
impl Clone for TradePushDecode
Source§fn clone(&self) -> TradePushDecode
fn clone(&self) -> TradePushDecode
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 TradePushDecode
impl RefUnwindSafe for TradePushDecode
impl Send for TradePushDecode
impl Sync for TradePushDecode
impl Unpin for TradePushDecode
impl UnsafeUnpin for TradePushDecode
impl UnwindSafe for TradePushDecode
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<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>
Converts
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>
Converts
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