pub struct InvocationError {
pub code: String,
pub message: String,
pub function_id: Option<String>,
pub stacktrace: Option<String>,
}Expand description
Structured invocation failure, mirroring the Node and Python InvocationError.
Produced from the Error::Remote variant via Error::invocation_error.
function_id is None from that accessor because the wire Remote payload
does not carry it.
Fields§
§code: String§message: String§function_id: Option<String>§stacktrace: Option<String>Trait Implementations§
Source§impl Clone for InvocationError
impl Clone for InvocationError
Source§fn clone(&self) -> InvocationError
fn clone(&self) -> InvocationError
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 InvocationError
impl Debug for InvocationError
Source§impl<'de> Deserialize<'de> for InvocationError
impl<'de> Deserialize<'de> for InvocationError
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
Source§impl Display for InvocationError
impl Display for InvocationError
impl Eq for InvocationError
Source§impl Error for InvocationError
impl Error for InvocationError
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 JsonSchema for InvocationError
impl JsonSchema for InvocationError
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for InvocationError
impl PartialEq for InvocationError
Source§impl Serialize for InvocationError
impl Serialize for InvocationError
impl StructuralPartialEq for InvocationError
Auto Trait Implementations§
impl Freeze for InvocationError
impl RefUnwindSafe for InvocationError
impl Send for InvocationError
impl Sync for InvocationError
impl Unpin for InvocationError
impl UnsafeUnpin for InvocationError
impl UnwindSafe for InvocationError
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