Skip to main content

Module principal

Module principal 

Source
Expand description

Authority principal — non-optional, exhaustive enum.

A three-variant enum forces every reader site to handle the unauthenticated state explicitly. Under clippy::wildcard_enum_match_arm = deny, a catch-all _ => match arm is a compile error; adding a new variant is therefore a breaking change surfaced at every reader.

Structs§

ExternalId
Opaque L2-supplied external identity. Kernel does not interpret its contents (Mechanism != Policy). The concrete byte shape is an L2 concern — this newtype carries a u64 for v0.13 and reserves the option to widen to a fixed-size cryptographic identifier in a future approximation (deferred [u8; 32] option).

Enums§

Principal
Authority principal. Three states, exhaustively type-checked.