#[non_exhaustive]pub enum SkillError {
Io {
path: PathBuf,
source: Error,
},
FileTooLarge {
path: PathBuf,
limit_bytes: u64,
},
AssetsTooLarge {
path: PathBuf,
total_bytes: u64,
limit_bytes: u64,
},
InvalidUtf8 {
path: PathBuf,
source: FromUtf8Error,
},
InvalidPackFile {
path: PathBuf,
reason: String,
},
ParseManifest {
path: PathBuf,
source: Error,
},
InvalidManifest(String),
Config(String),
Verification(String),
AlreadyRegistered(String),
NotFound(String),
}Expand description
Skill errors.
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.
Io
File I/O failed.
FileTooLarge
File exceeded the configured skill-pack size limit.
AssetsTooLarge
Aggregate skill-pack assets exceeded the configured size limit.
Fields
InvalidUtf8
A skill-pack text file is not valid UTF-8.
InvalidPackFile
A skill-pack path is not an accepted regular pack file or directory.
ParseManifest
YAML parsing failed.
InvalidManifest(String)
Manifest is invalid.
Config(String)
Config source resolution or validation failed.
Verification(String)
Verification failed.
AlreadyRegistered(String)
Registry conflict.
NotFound(String)
Skill not found.
Trait Implementations§
Source§impl Debug for SkillError
impl Debug for SkillError
Source§impl Display for SkillError
impl Display for SkillError
Source§impl Error for SkillError
impl Error for SkillError
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<SkillError> for AppError
impl From<SkillError> for AppError
Source§fn from(value: SkillError) -> Self
fn from(value: SkillError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SkillError
impl !UnwindSafe for SkillError
impl Freeze for SkillError
impl Send for SkillError
impl Sync for SkillError
impl Unpin for SkillError
impl UnsafeUnpin for SkillError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP