pub struct IrLoadError {
pub route: String,
pub ir_file: String,
pub reason: String,
}Expand description
Why a route could not be served with Phase 2 SSR.
reason starts with a stable code, by family, then the cause:
| Code | Cause |
|---|---|
| LOAD-101 | The manifest declares a module that is not embedded |
| LOAD-102 | Bad signature or legacy FMIR module requiring a rebuild |
| LOAD-103 | A corrupt or truncated module: sections, tables, opcodes, names |
| LOAD-109 | Declared islands require a JavaScript entry on their SSR route |
FMIR v3 checks length and CRC before parsing sections (LOAD-104). Missing
or unknown required sections use LOAD-105/LOAD-106; limits LOAD-107,
incompatible writer versions LOAD-108. Codes come from forma-ir.
Fields§
§route: StringThe route pattern that failed.
ir_file: StringThe .ir filename the manifest named for it.
reason: StringThe code and the human-readable cause, such as
LOAD-102 bad signature: expected FMIR v3 signature.
Implementations§
Trait Implementations§
Source§impl Clone for IrLoadError
impl Clone for IrLoadError
Source§impl Debug for IrLoadError
impl Debug for IrLoadError
Source§impl Display for IrLoadError
impl Display for IrLoadError
impl Eq for IrLoadError
Source§impl Error for IrLoadError
impl Error for IrLoadError
1.30.0 · 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 PartialEq for IrLoadError
impl PartialEq for IrLoadError
impl StructuralPartialEq for IrLoadError
Auto Trait Implementations§
impl Freeze for IrLoadError
impl RefUnwindSafe for IrLoadError
impl Send for IrLoadError
impl Sync for IrLoadError
impl Unpin for IrLoadError
impl UnsafeUnpin for IrLoadError
impl UnwindSafe for IrLoadError
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