#[non_exhaustive]pub enum NodeJsRelInfoError {
UnrecognizedOs(String),
UnrecognizedArch(String),
UnrecognizedExt(String),
InvalidVersion(String),
UnrecognizedVersion(String),
UnrecognizedConfiguration(String),
HttpError(Error),
}Expand description
The error type returned by all fallible operations in this crate
Non-exhaustive: new variants may appear in a minor release
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnrecognizedOs(String)
The operating system for the Node.js distributable you are targeting is
unrecognized - see: NodeJsOs for options
UnrecognizedArch(String)
The CPU architecture for the Node.js distributable you are targeting is
unrecognized - see: NodeJsArch for options
UnrecognizedExt(String)
The file extension of the Node.js distributable you are targeting is
unrecognized - see: NodeJsPkgExt for options
InvalidVersion(String)
The version string provided is invalid - see: semver
UnrecognizedVersion(String)
The version of Node.js you are targeting is not available
UnrecognizedConfiguration(String)
The Node.js configuration you are targeting is not available
HttpError(Error)
Something went wrong issuing or processing the HTTP GET request to the Node.js downloads server
Trait Implementations§
Source§impl Debug for NodeJsRelInfoError
impl Debug for NodeJsRelInfoError
Source§impl Display for NodeJsRelInfoError
impl Display for NodeJsRelInfoError
Source§impl Error for NodeJsRelInfoError
impl Error for NodeJsRelInfoError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Exposes the underlying reqwest::Error behind
HttpError so callers (and error
reporters like anyhow) can walk the full cause chain
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()