pub enum PatchResolutionError {
Validation {
package: String,
source: PatchValidationError,
},
ManifestParse {
package: String,
path: PathBuf,
reason: String,
},
}Expand description
Errors produced by resolve_active_patches. Wording is
stable so integration tests can match substrings.
Variants§
Validation
A patch failed structural validation (missing source,
missing cabin.toml, name mismatch, version mismatch, …).
Wraps the typed PatchValidationError from cabin-core
so the inner error carries its own user-readable wording.
ManifestParse
Cabin could not load the patched manifest. The inner
reason is the manifest crate’s display message — kept
as a string so this crate stays free of a transitive
cabin-manifest error dependency.
Trait Implementations§
Source§impl Debug for PatchResolutionError
impl Debug for PatchResolutionError
Source§impl Display for PatchResolutionError
impl Display for PatchResolutionError
Source§impl Error for PatchResolutionError
impl Error for PatchResolutionError
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 PatchResolutionError
impl RefUnwindSafe for PatchResolutionError
impl Send for PatchResolutionError
impl Sync for PatchResolutionError
impl Unpin for PatchResolutionError
impl UnsafeUnpin for PatchResolutionError
impl UnwindSafe for PatchResolutionError
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