pub enum SetupBlocker {
ProviderMissing,
CreditsExhausted,
AuthFailed,
Forbidden,
ProvidersUnavailable,
ProviderUnreachable,
ProviderTimedOut,
ProviderFailed,
}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.
ProviderUnreachable
The provider could not be reached at all: the name did not resolve, the connection was refused, or the TLS handshake failed. The network or the address is what to check.
ProviderTimedOut
The provider was reached and did not answer in time. It is up, but slow, or the request was large; a resume tries again.
ProviderFailed
The provider was reached and failed: a server error, a reply that stopped part-way, or one that could not be read. Nothing about the setup is known to be wrong; a resume tries again once it recovers.
Trait Implementations§
Source§impl Clone for SetupBlocker
impl Clone for SetupBlocker
Source§fn clone(&self) -> SetupBlocker
fn clone(&self) -> SetupBlocker
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
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
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
key and return true if they are equal.