pub enum ProviderChoice {
Host(String),
Custom,
Invalid,
}Expand description
Outcome of a provider-menu selection (the raw line the user typed).
Variants§
Host(String)
A resolved hostname: empty input → the default, a standard pick, or a hostname typed verbatim (so power users can skip the menu).
Custom
The “other” entry — the caller should prompt for a custom hostname.
Invalid
A bare number outside the menu range — the caller should re-ask.
Trait Implementations§
Source§impl Debug for ProviderChoice
impl Debug for ProviderChoice
impl Eq for ProviderChoice
Source§impl PartialEq for ProviderChoice
impl PartialEq for ProviderChoice
Source§fn eq(&self, other: &ProviderChoice) -> bool
fn eq(&self, other: &ProviderChoice) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProviderChoice
Auto Trait Implementations§
impl Freeze for ProviderChoice
impl RefUnwindSafe for ProviderChoice
impl Send for ProviderChoice
impl Sync for ProviderChoice
impl Unpin for ProviderChoice
impl UnsafeUnpin for ProviderChoice
impl UnwindSafe for ProviderChoice
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
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.