pub struct RuntimeErrorV3 {
pub code: RuntimeErrorCodeV3,
pub message: String,
pub retryable: bool,
}Expand description
V3 error object. Code semantics are versioned with V3 and do not alter the frozen v1/v2 error-code allowlist.
Fields§
§code: RuntimeErrorCodeV3§message: String§retryable: boolImplementations§
Source§impl RuntimeErrorV3
impl RuntimeErrorV3
Sourcepub fn new(code: RuntimeErrorCodeV3, message: impl Into<String>) -> Self
pub fn new(code: RuntimeErrorCodeV3, message: impl Into<String>) -> Self
Construct an error with the canonical retryability for its code.
pub fn validate(&self) -> Result<(), ProtocolV3Error>
Trait Implementations§
Source§impl Clone for RuntimeErrorV3
impl Clone for RuntimeErrorV3
Source§fn clone(&self) -> RuntimeErrorV3
fn clone(&self) -> RuntimeErrorV3
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 RuntimeErrorV3
impl Debug for RuntimeErrorV3
Source§impl<'de> Deserialize<'de> for RuntimeErrorV3
impl<'de> Deserialize<'de> for RuntimeErrorV3
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RuntimeErrorV3
Source§impl PartialEq for RuntimeErrorV3
impl PartialEq for RuntimeErrorV3
Source§impl Serialize for RuntimeErrorV3
impl Serialize for RuntimeErrorV3
impl StructuralPartialEq for RuntimeErrorV3
Auto Trait Implementations§
impl Freeze for RuntimeErrorV3
impl RefUnwindSafe for RuntimeErrorV3
impl Send for RuntimeErrorV3
impl Sync for RuntimeErrorV3
impl Unpin for RuntimeErrorV3
impl UnsafeUnpin for RuntimeErrorV3
impl UnwindSafe for RuntimeErrorV3
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