#[non_exhaustive]pub struct RunDiagnostic {
pub kind: &'static str,
pub message: String,
}Expand description
One retained diagnostic, independent of the terminal outcome.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: &'static strA stable broad category: warning for an Update::Warning, and for
an Update::Error one of these, by the Error it carries.
| Kind | The error |
|---|---|
state | Error::State: the state does not fit the caller’s type |
protocol | Error::Protocol, Error::InvalidPatchDocument: the stream broke a rule |
patch | Error::Patch: a patch did not apply, and the run went on |
decode | Error::Json, Error::Decode: a frame or its payload could not be read |
run | Error::Run: the agent reported RUN_ERROR |
unsupported | Error::Unsupported |
transport | any other error: the connection, the HTTP response |
message: StringHuman-readable cause.
Trait Implementations§
Source§impl Clone for RunDiagnostic
impl Clone for RunDiagnostic
Source§impl Debug for RunDiagnostic
impl Debug for RunDiagnostic
impl Eq for RunDiagnostic
Source§impl PartialEq for RunDiagnostic
impl PartialEq for RunDiagnostic
impl StructuralPartialEq for RunDiagnostic
Auto Trait Implementations§
impl Freeze for RunDiagnostic
impl RefUnwindSafe for RunDiagnostic
impl Send for RunDiagnostic
impl Sync for RunDiagnostic
impl Unpin for RunDiagnostic
impl UnsafeUnpin for RunDiagnostic
impl UnwindSafe for RunDiagnostic
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.