#[non_exhaustive]pub enum ResolverError {
Io(Error),
InvalidStyle(Cow<'static, str>),
StyleNotFound(Cow<'static, str>),
LocaleNotFound(Cow<'static, str>),
YamlError(String),
JsonError(Error),
CborError(String),
Denied {
uri: String,
reason: String,
},
VersionMismatch {
uri: String,
required: String,
declared: String,
},
IntegrityFailure {
uri: String,
expected: String,
actual: String,
},
NetworkError {
uri: String,
reason: String,
},
}Expand description
Error type for style resolution operations at the store layer.
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(Error)
An underlying I/O error occurred.
InvalidStyle(Cow<'static, str>)
The style content is malformed or invalid for the target version.
StyleNotFound(Cow<'static, str>)
The requested style could not be located.
LocaleNotFound(Cow<'static, str>)
The requested locale could not be located.
YamlError(String)
Failure during YAML deserialization.
JsonError(Error)
Failure during JSON deserialization.
CborError(String)
Failure during CBOR deserialization.
Denied
The URI host or origin is not in the resolver’s allowlist.
VersionMismatch
The style’s citum-version is not compatible with the running engine.
Fields
IntegrityFailure
The content does not match the expected integrity hash.
Fields
NetworkError
Generic network or transport failure.
Trait Implementations§
Source§impl Debug for ResolverError
impl Debug for ResolverError
Source§impl Display for ResolverError
impl Display for ResolverError
Source§impl Error for ResolverError
impl Error for ResolverError
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<Error> for ResolverError
impl From<Error> for ResolverError
Auto Trait Implementations§
impl Freeze for ResolverError
impl !RefUnwindSafe for ResolverError
impl Send for ResolverError
impl Sync for ResolverError
impl Unpin for ResolverError
impl UnsafeUnpin for ResolverError
impl !UnwindSafe for ResolverError
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