pub enum LocalRegistryError {
Parse(ParseError),
Validation(ValidationError),
Io {
action: &'static str,
path: PathBuf,
source: Error,
},
JsonRead {
path: PathBuf,
source: Error,
},
JsonWrite {
path: PathBuf,
source: Error,
},
InvalidVersionPayload {
field: String,
message: String,
},
InvalidSkillManifest {
field: String,
message: String,
},
InvalidSkillId(String),
EmptySlug,
UnsafePathComponent(String),
VersionConflict {
skill_id: String,
version: String,
},
Ambiguous(String),
}Variants§
Parse(ParseError)
Validation(ValidationError)
Io
JsonRead
JsonWrite
InvalidVersionPayload
InvalidSkillManifest
InvalidSkillId(String)
EmptySlug
UnsafePathComponent(String)
VersionConflict
Ambiguous(String)
Trait Implementations§
Source§impl Debug for LocalRegistryError
impl Debug for LocalRegistryError
Source§impl Display for LocalRegistryError
impl Display for LocalRegistryError
Source§impl Error for LocalRegistryError
impl Error for LocalRegistryError
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<ParseError> for LocalRegistryError
impl From<ParseError> for LocalRegistryError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ValidationError> for LocalRegistryError
impl From<ValidationError> for LocalRegistryError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for LocalRegistryError
impl !UnwindSafe for LocalRegistryError
impl Freeze for LocalRegistryError
impl Send for LocalRegistryError
impl Sync for LocalRegistryError
impl Unpin for LocalRegistryError
impl UnsafeUnpin for LocalRegistryError
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