pub enum KeyCheck {
Valid,
Rejected(String),
Unreachable(String),
}Expand description
Outcome of probing a provider key before storing it.
The three-way split mirrors the credential-resolution one, for the same reason: “the provider says this key is bad” and “I could not reach the provider” demand opposite responses, and collapsing them would either accept dead keys during an outage or refuse good ones.
Variants§
Valid
The provider accepted the key.
Rejected(String)
The provider rejected it — a typo or a revoked key.
Unreachable(String)
The provider could not be reached, or answered something unexpected.
Trait Implementations§
impl Eq for KeyCheck
impl StructuralPartialEq for KeyCheck
Auto Trait Implementations§
impl Freeze for KeyCheck
impl RefUnwindSafe for KeyCheck
impl Send for KeyCheck
impl Sync for KeyCheck
impl Unpin for KeyCheck
impl UnsafeUnpin for KeyCheck
impl UnwindSafe for KeyCheck
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