pub struct WxRuntimeError {
pub message: String,
}Expand description
WxRust 专用运行时异常。
用于执行引擎的致命错误(重试超限、token 获取超时、中断等)——这些错误
在 Java 中抛 WxRuntimeException(unchecked),Rust 中作为 crate::error::WxErrorException
的 Runtime 变体承载。
Fields§
§message: String运行时错误信息
Implementations§
Trait Implementations§
Source§impl Clone for WxRuntimeError
impl Clone for WxRuntimeError
Source§fn clone(&self) -> WxRuntimeError
fn clone(&self) -> WxRuntimeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WxRuntimeError
impl Debug for WxRuntimeError
Source§impl Display for WxRuntimeError
impl Display for WxRuntimeError
Source§impl Error for WxRuntimeError
impl Error for WxRuntimeError
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()
Source§impl From<WxRuntimeError> for WxErrorException
impl From<WxRuntimeError> for WxErrorException
Source§fn from(source: WxRuntimeError) -> Self
fn from(source: WxRuntimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WxRuntimeError
impl RefUnwindSafe for WxRuntimeError
impl Send for WxRuntimeError
impl Sync for WxRuntimeError
impl Unpin for WxRuntimeError
impl UnsafeUnpin for WxRuntimeError
impl UnwindSafe for WxRuntimeError
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