pub enum HostAssetError {
UnsupportedMode {
host: HostAdapter,
mode: IntegrationMode,
},
Malformed {
reason: String,
},
Parse {
reason: String,
},
Serialize {
reason: String,
},
}Expand description
Errors returned by merge or render entry points. Callers convert as needed; the variants are pinned so downstream tests can match.
Variants§
UnsupportedMode
The (host, mode) pair is not a supported install combination.
Malformed
The existing file’s top-level shape conflicts with the merge
invariants (e.g. hooks is an array instead of an object).
Parse
The existing file is invalid JSON or TOML.
Serialize
Re-serialization failed (should be unreachable for well-formed inputs; surfaced rather than panicked).
Trait Implementations§
Source§impl Debug for HostAssetError
impl Debug for HostAssetError
Source§impl Display for HostAssetError
impl Display for HostAssetError
Source§impl Error for HostAssetError
impl Error for HostAssetError
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()
Auto Trait Implementations§
impl Freeze for HostAssetError
impl RefUnwindSafe for HostAssetError
impl Send for HostAssetError
impl Sync for HostAssetError
impl Unpin for HostAssetError
impl UnsafeUnpin for HostAssetError
impl UnwindSafe for HostAssetError
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