pub enum SelectionFailureKind {
NoCredentials,
UsageReadFailed,
CredentialRejected,
AllCoolingDown,
QuotaUnknown,
SeatChurn,
RemoteNoCapacity,
ActionRequired,
CredentialStore,
Unknown,
}Expand description
The one kind that explains a failed automatic selection.
Variants§
NoCredentials
No account is logged in for the provider.
UsageReadFailed
At least one account’s usage read or token refresh failed for a transient reason: capacity is unproven, not absent.
CredentialRejected
Every account that is not cooling down needs a new login.
AllCoolingDown
Every account is cooling down or at a usage limit.
QuotaUnknown
The readings succeeded but proved no capacity.
SeatChurn
The chosen slot kept changing while its capacity was being proven.
RemoteNoCapacity
A remote broker answered “no account available” (its own log has the reason).
ActionRequired
Every account that is not limited needs a login or an action outside synaps (a corrupt or missing store, a billing requirement), and at least one needs the action.
CredentialStore
The credential store could not be listed, so no account was read.
Unknown
A kind this build does not know (from a newer daemon).
Implementations§
Trait Implementations§
Source§impl Clone for SelectionFailureKind
impl Clone for SelectionFailureKind
Source§fn clone(&self) -> SelectionFailureKind
fn clone(&self) -> SelectionFailureKind
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 SelectionFailureKind
Source§impl Debug for SelectionFailureKind
impl Debug for SelectionFailureKind
Source§impl<'de> Deserialize<'de> for SelectionFailureKind
impl<'de> Deserialize<'de> for SelectionFailureKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SelectionFailureKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SelectionFailureKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Display for SelectionFailureKind
impl Display for SelectionFailureKind
impl Eq for SelectionFailureKind
Source§impl PartialEq for SelectionFailureKind
impl PartialEq for SelectionFailureKind
Source§impl Serialize for SelectionFailureKind
impl Serialize for SelectionFailureKind
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for SelectionFailureKind
Auto Trait Implementations§
impl Freeze for SelectionFailureKind
impl RefUnwindSafe for SelectionFailureKind
impl Send for SelectionFailureKind
impl Sync for SelectionFailureKind
impl Unpin for SelectionFailureKind
impl UnsafeUnpin for SelectionFailureKind
impl UnwindSafe for SelectionFailureKind
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<'a, T> Prefix<&'a [T], T> for T
impl<'a, T> Prefix<&'a [T], T> for T
Source§fn take_prefix(&self, haystack: &'a [T]) -> Option<(T, &'a [T])>
fn take_prefix(&self, haystack: &'a [T]) -> Option<(T, &'a [T])>
Source§fn skip_prefix(&self, haystack: Parent) -> Option<Parent>
fn skip_prefix(&self, haystack: Parent) -> Option<Parent>
impl<T> ThreadSafetyMarker for Twhere
T: Send,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more