pub enum SrpcDecodeError {
AllPathsFailed {
body_len: usize,
},
ValidatorRejected,
}Expand description
SRPC envelope 解码失败原因(v1.4.106 codex 1110 F3 [P2] 修:不再返回 default)
Variants§
AllPathsFailed
body 完全无法 decode(standard prost + SRPC field 5 + 嵌套 field 4 三路径都失败)
ValidatorRejected
body decode 成功但 validator 不通过(例:result_code != 0 或 stock_count 不一致)
Trait Implementations§
Source§impl Debug for SrpcDecodeError
impl Debug for SrpcDecodeError
Source§impl Display for SrpcDecodeError
impl Display for SrpcDecodeError
Source§impl Error for SrpcDecodeError
impl Error for SrpcDecodeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for SrpcDecodeError
impl RefUnwindSafe for SrpcDecodeError
impl Send for SrpcDecodeError
impl Sync for SrpcDecodeError
impl Unpin for SrpcDecodeError
impl UnsafeUnpin for SrpcDecodeError
impl UnwindSafe for SrpcDecodeError
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
§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>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.