#[non_exhaustive]pub enum AdapterError {
InvalidManifest,
TargetNotFound,
MapMismatch(&'static str),
CallerLimitTooSmall(String),
InvalidAcquiredFile(String),
ArchiveExtractionRequired,
UnsupportedArchiveFormat,
Eggup(String),
}Expand description
Typed adapter failure. Details never contain URLs or file contents.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidManifest
Manifest or Eggup identity is invalid.
TargetNotFound
Exact canonical target is absent.
MapMismatch(&'static str)
Request, acquired-file, or permission maps differ from the required set.
CallerLimitTooSmall(String)
Caller artifact limit is lower than the manifest exact size.
InvalidAcquiredFile(String)
Acquired path is relative, missing, linked, non-regular, or the wrong size.
ArchiveExtractionRequired
Archive member bytes cannot be made installable without qualified extraction.
UnsupportedArchiveFormat
Caller-selected artifact name does not name a supported archive format.
Eggup(String)
Construction in a lower Eggup layer failed.
Trait Implementations§
Source§impl Debug for AdapterError
impl Debug for AdapterError
Source§impl Display for AdapterError
impl Display for AdapterError
Source§impl Error for AdapterError
impl Error for AdapterError
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 AdapterError
impl RefUnwindSafe for AdapterError
impl Send for AdapterError
impl Sync for AdapterError
impl Unpin for AdapterError
impl UnsafeUnpin for AdapterError
impl UnwindSafe for AdapterError
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