pub enum HirError {
Malformed {
code: &'static str,
message: String,
},
IncompatibleProtocol {
expected: String,
received: String,
},
UnsupportedNode {
kind: String,
span: Option<Span>,
},
Invalid {
code: &'static str,
message: String,
span: Option<Span>,
},
}Expand description
A structured Opy HIR v2 ingestion error.
Variants§
Malformed
The payload is not valid JSON or does not fit the protocol envelope.
IncompatibleProtocol
Protocol identity or major version is not supported. Reported before any program-body inspection.
UnsupportedNode
A node kind the consumer does not understand.
Invalid
A structural, provenance, identifier, or reference invariant failed.
Implementations§
Trait Implementations§
impl Eq for HirError
Source§impl Error for HirError
impl Error for HirError
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()
impl StructuralPartialEq for HirError
Auto Trait Implementations§
impl Freeze for HirError
impl RefUnwindSafe for HirError
impl Send for HirError
impl Sync for HirError
impl Unpin for HirError
impl UnsafeUnpin for HirError
impl UnwindSafe for HirError
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