#[non_exhaustive]pub enum LabelsConfigError {
Io {
path: PathBuf,
source: Error,
},
Parse {
path: PathBuf,
message: String,
},
ReservedNamespace,
TapAndUri,
EmptyTable,
RevWithExplicitFragment {
uri: String,
rev: String,
},
ViaOnNonTemplateScheme {
uri: String,
},
}Expand description
Errors emitted by load_labels_from_toml and
NamespaceSpec::canonical_uri.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Io
Reading the toml file failed.
Parse
The toml body did not parse.
ReservedNamespace
[labels] declared the reserved lex namespace. The lex.*
label space is owned by the core and ships compiled-in;
re-declaring it would silently shadow core built-ins.
TapAndUri
Table form had both tap and uri set. They’re mutually
exclusive — pick one.
EmptyTable
Table form had neither tap nor uri set.
RevWithExplicitFragment
Both the explicit uri (with a #fragment) and a rev
field are set. Either is meaningful but together they’re
ambiguous — pick one.
ViaOnNonTemplateScheme
via was declared on a spec whose URI scheme is not a URL
template (github: / gitlab:). The transport is already
fully determined by the scheme, so via would silently no-op
— reject it instead.
Trait Implementations§
Source§impl Debug for LabelsConfigError
impl Debug for LabelsConfigError
Source§impl Display for LabelsConfigError
impl Display for LabelsConfigError
Source§impl Error for LabelsConfigError
impl Error for LabelsConfigError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for LabelsConfigError
impl !UnwindSafe for LabelsConfigError
impl Freeze for LabelsConfigError
impl Send for LabelsConfigError
impl Sync for LabelsConfigError
impl Unpin for LabelsConfigError
impl UnsafeUnpin for LabelsConfigError
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more