pub enum SetupBlocker {
ProviderMissing,
CreditsExhausted,
AuthFailed,
Forbidden,
ProvidersUnavailable,
}Expand description
What is stopping a WaitReason::NeedsSetup run, in a form a client can
branch on.
One variant per remedy, not per error: these are the cases whose fixes
differ. Topping up an account, adding a provider to config.toml and
replacing a rejected key are three different screens, and a console that
had only the sentence would be reduced to matching on its wording.
Variants§
ProviderMissing
The stage names a provider this install has not configured.
CreditsExhausted
The account behind the provider is out of credits.
AuthFailed
The key was rejected.
Forbidden
The key is valid but not allowed to use the model.
Every candidate is out of service, for reasons that do not agree or are not known. The remedy names what was tried last.
Trait Implementations§
Source§impl Clone for SetupBlocker
impl Clone for SetupBlocker
Source§fn clone(&self) -> SetupBlocker
fn clone(&self) -> SetupBlocker
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 SetupBlocker
Source§impl Debug for SetupBlocker
impl Debug for SetupBlocker
Source§impl<'de> Deserialize<'de> for SetupBlocker
impl<'de> Deserialize<'de> for SetupBlocker
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SetupBlocker
impl Display for SetupBlocker
impl Eq for SetupBlocker
Source§impl Hash for SetupBlocker
impl Hash for SetupBlocker
Source§impl PartialEq for SetupBlocker
impl PartialEq for SetupBlocker
Source§impl Serialize for SetupBlocker
impl Serialize for SetupBlocker
impl StructuralPartialEq for SetupBlocker
Auto Trait Implementations§
impl Freeze for SetupBlocker
impl RefUnwindSafe for SetupBlocker
impl Send for SetupBlocker
impl Sync for SetupBlocker
impl Unpin for SetupBlocker
impl UnsafeUnpin for SetupBlocker
impl UnwindSafe for SetupBlocker
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.