pub enum InventoryError {
Parse(String),
Io(String),
EmptyTrustDomain,
EmptyRegionName,
InvalidNodeId {
id: String,
reason: String,
},
InvalidDuration {
node: String,
field: &'static str,
value: String,
},
RenewBeforeNotShorterThanTtl {
node: String,
},
DuplicateNodeId {
id: String,
},
InvalidQuorumWidth {
width: u32,
},
}Expand description
Reasons an inventory fails to load or validate.
Variants§
Parse(String)
The YAML could not be parsed (syntax error or unknown field).
Io(String)
The file could not be read.
EmptyTrustDomain
trust_domain is empty / whitespace.
EmptyRegionName
A region carried an empty name.
InvalidNodeId
A node id failed the agent-id shape check.
InvalidDuration
A cred_ttl / renew_before value did not parse to a positive
duration.
RenewBeforeNotShorterThanTtl
renew_before was not strictly shorter than cred_ttl — the node
would consider itself due for renewal before it ever held a valid
window.
DuplicateNodeId
The same node id appeared more than once — an ambiguous identity.
InvalidQuorumWidth
quorum.width is below MIN_QUORUM_WIDTH.
Implementations§
Trait Implementations§
Source§impl Clone for InventoryError
impl Clone for InventoryError
Source§fn clone(&self) -> InventoryError
fn clone(&self) -> InventoryError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InventoryError
impl Debug for InventoryError
Source§impl Display for InventoryError
impl Display for InventoryError
impl Eq for InventoryError
Source§impl Error for InventoryError
impl Error for InventoryError
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()
Source§impl PartialEq for InventoryError
impl PartialEq for InventoryError
Source§fn eq(&self, other: &InventoryError) -> bool
fn eq(&self, other: &InventoryError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InventoryError
Auto Trait Implementations§
impl Freeze for InventoryError
impl RefUnwindSafe for InventoryError
impl Send for InventoryError
impl Sync for InventoryError
impl Unpin for InventoryError
impl UnsafeUnpin for InventoryError
impl UnwindSafe for InventoryError
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
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§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
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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>
Converts
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>
Converts
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read moreSource§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.