pub enum ViteDevError {
Url(String),
Request {
path: String,
message: String,
},
Status {
path: String,
status: StatusCode,
},
Artifact(ArtifactError),
}Expand description
A failure to reach the Vite dev server or to read what it served.
Variants§
Url(String)
The URL is not an http origin.
Request
The request did not complete.
Status
The server answered with an unexpected status.
Artifact(ArtifactError)
The development artifact is not valid.
Trait Implementations§
Source§impl Debug for ViteDevError
impl Debug for ViteDevError
Source§impl Display for ViteDevError
impl Display for ViteDevError
Source§impl Error for ViteDevError
impl Error for ViteDevError
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<ArtifactError> for ViteDevError
impl From<ArtifactError> for ViteDevError
Source§fn from(source: ArtifactError) -> Self
fn from(source: ArtifactError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ViteDevError
impl !UnwindSafe for ViteDevError
impl Forget for ViteDevError
impl Freeze for ViteDevError
impl Move for ViteDevError
impl Send for ViteDevError
impl Sync for ViteDevError
impl Unpin for ViteDevError
impl UnsafeUnpin for ViteDevError
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