pub enum UnknownSourceError {
Unknown(String),
RequiresPath(&'static str),
RequiresTransport(&'static str),
FeatureDisabled(&'static str, &'static str),
}Expand description
Reasons an identifier-based chain could not be built.
Variants§
Unknown(String)
The identifier didn’t match any built-in source.
RequiresPath(&'static str)
The identifier names a source that requires a caller-supplied path
(e.g. file-override, kubernetes-downward-api). Build it
manually with the typed constructor and chain via .push(...).
RequiresTransport(&'static str)
The identifier names a cloud source that needs an HTTP transport;
use [resolver_from_ids_with_transport].
FeatureDisabled(&'static str, &'static str)
The identifier is valid but its crate feature is not enabled in this build.
Trait Implementations§
Source§impl Debug for UnknownSourceError
impl Debug for UnknownSourceError
Source§impl Display for UnknownSourceError
impl Display for UnknownSourceError
Source§impl Error for UnknownSourceError
impl Error for UnknownSourceError
1.30.0 · 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 UnknownSourceError
impl RefUnwindSafe for UnknownSourceError
impl Send for UnknownSourceError
impl Sync for UnknownSourceError
impl Unpin for UnknownSourceError
impl UnsafeUnpin for UnknownSourceError
impl UnwindSafe for UnknownSourceError
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