pub enum MissingHalf {
Key,
Kid,
}Expand description
Which half of a (secret, kid) pair is missing.
Returned rather than a formatted message so each caller can name the store it looked in — the registry, an environment variable pair, a config file — while the rule itself lives in one place. Two callers writing their own version of “half is an error” is how they end up disagreeing about it.
Variants§
Key
A key id with no key to go with it.
Kid
A key with no id. Cannot be signed with: Kanade-Sig-Kid has to name
something the fleet’s keyring recognises, and guessing produces a
signature every agent reports as unattributable.
Trait Implementations§
Source§impl Clone for MissingHalf
impl Clone for MissingHalf
Source§fn clone(&self) -> MissingHalf
fn clone(&self) -> MissingHalf
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 moreimpl Copy for MissingHalf
Source§impl Debug for MissingHalf
impl Debug for MissingHalf
impl Eq for MissingHalf
Source§impl PartialEq for MissingHalf
impl PartialEq for MissingHalf
impl StructuralPartialEq for MissingHalf
Auto Trait Implementations§
impl Freeze for MissingHalf
impl RefUnwindSafe for MissingHalf
impl Send for MissingHalf
impl Sync for MissingHalf
impl Unpin for MissingHalf
impl UnsafeUnpin for MissingHalf
impl UnwindSafe for MissingHalf
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
Compare self to
key and return true if they are equal.