pub enum SubnetProvisionError {
Auth(SubnetAuthError),
EmptyExportName,
DuplicateExportName,
UnknownExportName,
EmptyAuthorityRoots,
DuplicateAuthorityRoot,
DuplicateAuthority,
ZeroGrantLifetime,
InvalidIdHex,
PathTooDeep,
InvalidPathLevel,
InvalidAccess,
}Expand description
Local subnet provisioning/configuration failure. Display is the
stable subnet:<kind> envelope; bindings classify on the kind, not
on English prose.
Core SubnetAuthErrors are Copy and carry no detail map, so
this wrapper invents no k=v payloads. Startup-shaped by design
(the OrgProvisionError doctrine): a node either provisions
correctly or it does not — these are never call-path error domains.
Variants§
Auth(SubnetAuthError)
A core credential/fact failure — decode, verification, install, or apply. The kind is the core reason code, verbatim.
EmptyExportName
A named export with an empty name.
DuplicateExportName
Two named exports share one name.
UnknownExportName
serve_subnet_exported named an export that is not configured.
EmptyAuthorityRoots
An authority config with no roots (would fail closed forever).
DuplicateAuthorityRoot
An authority config listing one root twice.
DuplicateAuthority
Two authority configs for the same authority id.
ZeroGrantLifetime
maximum_grant_lifetime_secs == 0.
InvalidIdHex
A DTO hex field that is not exactly 64 hex characters.
PathTooDeep
A DTO path with more than four levels.
InvalidPathLevel
A path level outside 0..=255 (reachable only from binding
layers whose numeric types are wider than the DTO’s u8).
InvalidAccess
A DTO access string that is neither sameOrg nor granted.
Implementations§
Source§impl SubnetProvisionError
impl SubnetProvisionError
Sourcepub const fn wire_kind(&self) -> &'static str
pub const fn wire_kind(&self) -> &'static str
The stable kind token (without the subnet: prefix).
&'static str, not String (review-10 P2-2): every token —
core reason code and local kind alike — is static, so there is
nothing to allocate. Core codes come from
SubnetAuthError::wire_kind, the single spelling table.
Trait Implementations§
Source§impl Clone for SubnetProvisionError
impl Clone for SubnetProvisionError
Source§fn clone(&self) -> SubnetProvisionError
fn clone(&self) -> SubnetProvisionError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SubnetProvisionError
Source§impl Debug for SubnetProvisionError
impl Debug for SubnetProvisionError
Source§impl Display for SubnetProvisionError
impl Display for SubnetProvisionError
impl Eq for SubnetProvisionError
Source§impl Error for SubnetProvisionError
impl Error for SubnetProvisionError
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 From<SubnetAuthError> for SubnetProvisionError
impl From<SubnetAuthError> for SubnetProvisionError
Source§fn from(e: SubnetAuthError) -> Self
fn from(e: SubnetAuthError) -> Self
Source§impl PartialEq for SubnetProvisionError
impl PartialEq for SubnetProvisionError
impl StructuralPartialEq for SubnetProvisionError
Auto Trait Implementations§
impl Freeze for SubnetProvisionError
impl RefUnwindSafe for SubnetProvisionError
impl Send for SubnetProvisionError
impl Sync for SubnetProvisionError
impl Unpin for SubnetProvisionError
impl UnsafeUnpin for SubnetProvisionError
impl UnwindSafe for SubnetProvisionError
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.