pub enum Resolution {
Found {
record: SecretRecord,
origin: VaultOrigin,
},
NotFound,
}Expand description
The outcome of resolving a coordinate against the registry.
The Found/NotFound size disparity is inherent: a found resolution must
carry the decrypted SecretRecord (whose Keypair variant holds an
OpenSSH private key), while NotFound is empty. Resolutions are short-lived,
pattern-matched values on the stack — boxing the record would add an
allocation on the hot point-lookup path for no real benefit — so the
large-variant lint is intentionally allowed here.
Variants§
Found
A record was found; carries it and where it came from.
NotFound
No record at this coordinate in the applicable vault(s). (The .env.refs
fallback — step 3 of the §1.1 table — is L4, not handled here.)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Resolution
impl RefUnwindSafe for Resolution
impl Send for Resolution
impl Sync for Resolution
impl Unpin for Resolution
impl UnsafeUnpin for Resolution
impl UnwindSafe for Resolution
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