#[non_exhaustive]pub enum UserExtensionError {
Io {
path: String,
source: Error,
},
Parse {
path: String,
source: Error,
},
InvalidPatterns {
path: String,
issues: Vec<InvalidPatternIssue>,
},
}Expand description
Errors from loading config.toml’s user-extension section.
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
Filesystem read failed (other than “not found”, which is
treated as “no user extensions” — see load).
Parse
TOML deserialisation failed (malformed file).
Fields
§
source: ErrorThe underlying TOML deserialiser error.
InvalidPatterns
One or more host patterns failed grammar validation per
ADR-0028 D2-1. The vec collects every offending entry so the
user sees all errors in a single pass rather than fixing them
one at a time (review pass I6).
Fields
§
issues: Vec<InvalidPatternIssue>All rejected patterns in this file.
Trait Implementations§
Source§impl Debug for UserExtensionError
impl Debug for UserExtensionError
Source§impl Display for UserExtensionError
impl Display for UserExtensionError
Source§impl Error for UserExtensionError
impl Error for UserExtensionError
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 UserExtensionError
impl !RefUnwindSafe for UserExtensionError
impl Send for UserExtensionError
impl Sync for UserExtensionError
impl Unpin for UserExtensionError
impl UnsafeUnpin for UserExtensionError
impl !UnwindSafe for UserExtensionError
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