pub enum ProbeError {
Native(String),
Empty,
InvalidJson(Error),
SchemaVersion {
actual: u32,
expected: u32,
},
InvalidSnapshot(SnapshotValidationError),
}Expand description
Failure to initialize Qt or deserialize its probe output.
Variants§
Native(String)
The native Qt probe failed.
Empty
The probe returned a null result.
InvalidJson(Error)
The native probe returned malformed JSON.
SchemaVersion
The native and Rust snapshot schema versions differ.
Fields
InvalidSnapshot(SnapshotValidationError)
Qt produced a snapshot that violates the public contract.
Trait Implementations§
Source§impl Debug for ProbeError
impl Debug for ProbeError
Source§impl Display for ProbeError
impl Display for ProbeError
Source§impl Error for ProbeError
impl Error for ProbeError
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 From<Error> for ProbeError
impl From<Error> for ProbeError
Source§impl From<SnapshotValidationError> for ProbeError
impl From<SnapshotValidationError> for ProbeError
Source§fn from(source: SnapshotValidationError) -> Self
fn from(source: SnapshotValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ProbeError
impl !UnwindSafe for ProbeError
impl Freeze for ProbeError
impl Send for ProbeError
impl Sync for ProbeError
impl Unpin for ProbeError
impl UnsafeUnpin for ProbeError
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