#[non_exhaustive]pub enum RenderError {
Unresolved {
reference: String,
environment: String,
},
NamespaceUnready {
namespace: String,
reference: String,
environment: String,
},
}Expand description
A value whose grammar is valid but whose {{secret:...}} cannot be
resolved.
Redacted by construction (IR-41): a variant carries the reference as the operator wrote it, the namespace and the environment, and no field can hold a value.
#[non_exhaustive]: shep-core is published, so a new way for a
reference to fail must not break an out-of-tree match. It costs
in-tree callers nothing, since Self::is_retriable already gives them
the one classification they act on.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unresolved
The store holds no value for this reference in this environment
Fields
NamespaceUnready
No provider dog has pushed the namespace this reference reads for the environment it was resolved in
Implementations§
Source§impl RenderError
impl RenderError
Sourcepub fn is_retriable(&self) -> bool
pub fn is_retriable(&self) -> bool
Whether waiting could make this reference resolve.
true for Self::NamespaceUnready alone: a provider dog that has
not pushed this environment yet is the one failure a later attempt
can clear. An Self::Unresolved waits on a person instead.
Trait Implementations§
Source§impl Clone for RenderError
impl Clone for RenderError
Source§fn clone(&self) -> RenderError
fn clone(&self) -> RenderError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RenderError
impl Debug for RenderError
Source§impl Display for RenderError
impl Display for RenderError
impl Eq for RenderError
Source§impl Error for RenderError
impl Error for RenderError
1.30.0 · 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()
Source§impl PartialEq for RenderError
impl PartialEq for RenderError
impl StructuralPartialEq for RenderError
Auto Trait Implementations§
impl Freeze for RenderError
impl RefUnwindSafe for RenderError
impl Send for RenderError
impl Sync for RenderError
impl Unpin for RenderError
impl UnsafeUnpin for RenderError
impl UnwindSafe for RenderError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.