#[non_exhaustive]pub struct ErrorReport {
pub kind: ErrorKind,
pub message: String,
pub status: i32,
pub partial: Option<Transcript>,
}Expand description
An owned, plain-data snapshot of an Error: what crosses a process or
IPC boundary (e.g. a Tauri command’s error).
Error itself serializes to exactly this shape under the serde
feature; deserialize into ErrorReport on the receiving side (an
Error cannot be rebuilt from it). JSON looks like:
{ "kind": "aborted", "message": "operation aborted: ...", "status": 13, "partial": { "text": "..." } }partial is null unless the error carried a partial transcript. It is
always written (never skipped) so non-self-describing formats such as
postcard round-trip.
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: ErrorKindThe error category.
message: StringThe error’s Display text.
status: i32Error::raw_status: the transcribe_status, or 0 for Rust-side errors.
partial: Option<Transcript>Error::partial, if any.
Trait Implementations§
Source§impl Clone for ErrorReport
impl Clone for ErrorReport
Source§impl Debug for ErrorReport
impl Debug for ErrorReport
Source§impl From<&Error> for ErrorReport
impl From<&Error> for ErrorReport
Source§impl From<Error> for ErrorReport
Moves the partial transcript out instead of cloning it.
impl From<Error> for ErrorReport
Moves the partial transcript out instead of cloning it.
Source§impl PartialEq for ErrorReport
impl PartialEq for ErrorReport
impl StructuralPartialEq for ErrorReport
Auto Trait Implementations§
impl Freeze for ErrorReport
impl RefUnwindSafe for ErrorReport
impl Send for ErrorReport
impl Sync for ErrorReport
impl Unpin for ErrorReport
impl UnsafeUnpin for ErrorReport
impl UnwindSafe for ErrorReport
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