pub enum PluginCatalogImportError {
Catalog(PluginCatalogError),
DuplicateIdentity {
identity: String,
first_path: String,
duplicate_path: String,
},
ReadArtifact {
path: String,
source: Error,
},
ArtifactNotFile {
path: String,
},
ArtifactTooLarge {
path: String,
actual_bytes: u64,
maximum_bytes: u64,
},
StaleDigest {
path: String,
expected: String,
actual: String,
},
InvalidPath {
path: String,
message: String,
},
}Expand description
A structured failure produced before a catalog candidate is committed.
Variants§
Catalog(PluginCatalogError)
DuplicateIdentity
ReadArtifact
ArtifactNotFile
ArtifactTooLarge
StaleDigest
InvalidPath
Trait Implementations§
Source§impl Debug for PluginCatalogImportError
impl Debug for PluginCatalogImportError
Source§impl Display for PluginCatalogImportError
impl Display for PluginCatalogImportError
Source§impl Error for PluginCatalogImportError
impl Error for PluginCatalogImportError
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<PluginCatalogError> for PluginCatalogImportError
impl From<PluginCatalogError> for PluginCatalogImportError
Source§fn from(error: PluginCatalogError) -> Self
fn from(error: PluginCatalogError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PluginCatalogImportError
impl !UnwindSafe for PluginCatalogImportError
impl Freeze for PluginCatalogImportError
impl Send for PluginCatalogImportError
impl Sync for PluginCatalogImportError
impl Unpin for PluginCatalogImportError
impl UnsafeUnpin for PluginCatalogImportError
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