pub enum ViewerError {
BinaryNotFound(String),
SpawnFailed(String),
ConfigWriteFailed(String),
ResultReadFailed(String),
InvalidResponse(String),
Timeout,
VersionMismatch {
library: String,
viewer: String,
suggestion: String,
},
IoError(Error),
SerdeError(String),
CommandTimeout {
seq: u64,
timeout_secs: u64,
},
CommandFailed(String),
RefreshNotSupported(String),
}Expand description
Errors that can occur when using the html_view library.
Variants§
BinaryNotFound(String)
The html_view_app binary could not be found.
SpawnFailed(String)
Failed to spawn the html_view_app process.
ConfigWriteFailed(String)
Failed to write the configuration file.
ResultReadFailed(String)
Failed to read the result file.
InvalidResponse(String)
The response from the viewer was invalid or malformed.
Timeout
The viewer timed out.
VersionMismatch
Version mismatch between library and viewer.
IoError(Error)
An I/O error occurred.
SerdeError(String)
A serialization error occurred.
CommandTimeout
Command timed out waiting for response.
CommandFailed(String)
Command execution failed.
RefreshNotSupported(String)
Refresh not supported (old viewer or wrong mode).
Trait Implementations§
Source§impl Clone for ViewerError
impl Clone for ViewerError
Source§impl Debug for ViewerError
impl Debug for ViewerError
Source§impl Display for ViewerError
impl Display for ViewerError
Source§impl Error for ViewerError
impl Error for ViewerError
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()
Auto Trait Implementations§
impl Freeze for ViewerError
impl !RefUnwindSafe for ViewerError
impl Send for ViewerError
impl Sync for ViewerError
impl Unpin for ViewerError
impl UnsafeUnpin for ViewerError
impl !UnwindSafe for ViewerError
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