pub struct ResponseDecodeError { /* private fields */ }Expand description
HTTP 响应模型解码失败时保留的可恢复上下文。
调试和错误格式化只显示响应长度,不会输出原始响应内容。调用方可以通过
BpiError::response_body 显式取得响应字节并使用临时模型重新解析。
Trait Implementations§
Source§impl Debug for ResponseDecodeError
impl Debug for ResponseDecodeError
Source§impl Display for ResponseDecodeError
impl Display for ResponseDecodeError
Source§impl Error for ResponseDecodeError
impl Error for ResponseDecodeError
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 ResponseDecodeError
impl !RefUnwindSafe for ResponseDecodeError
impl !UnwindSafe for ResponseDecodeError
impl Send for ResponseDecodeError
impl Sync for ResponseDecodeError
impl Unpin for ResponseDecodeError
impl UnsafeUnpin for ResponseDecodeError
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> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.