pub enum BrokerError {
Show 21 variants
NotSignedIn(String),
Reauthorize,
Blocked,
InstallNotApproved(String),
NotLive(String),
NotConnected,
UserMismatch {
current: GithubUser,
new: GithubUser,
},
Unavailable(String),
NotLinked,
LinkStale,
RepositoryNotVisible(String),
PermissionNotAllowed(String),
BadRequest(String),
NotConfigured,
InstallSuspended,
PermissionNotGranted(String),
GithubRejected,
InstallationNotVisible,
StateInvalid,
InstallationTooLarge,
Other {
status: u16,
error: String,
},
}Expand description
Why a broker call gave no answer. The variants are what the desktop does next, not what the broker said.
Variants§
NotSignedIn(String)
There is no AgentMux Cloud sign-in (or this install has no key yet).
GitHub no longer accepts this grant: connect again.
Blocked
An operator blocked this account’s GitHub grant.
InstallNotApproved(String)
The broker doesn’t know this install, or it isn’t approved: sign in and approve it in the Console.
NotLive(String)
The grant was revoked or is otherwise not live (status is the broker’s word for it).
NotConnected
This account has no GitHub grant.
UserMismatch
The account is connected as another GitHub user. Ask, then connect again with replace.
GitHub or the broker is briefly unavailable.
NotLinked
The installation isn’t linked to this account (or its link was revoked).
LinkStale
The link wasn’t verified lately: present a fresh user token to links/revalidate, then ask again.
RepositoryNotVisible(String)
A requested repository is outside what this account can see in the installation.
PermissionNotAllowed(String)
A requested permission is above what the App may give.
BadRequest(String)
The broker refused the request as malformed: a bug here, not something to retry.
NotConfigured
The broker isn’t set up to mint yet.
InstallSuspended
The installation is suspended on GitHub.
PermissionNotGranted(String)
The installation hasn’t accepted a permission the App asks for: its owner accepts it on GitHub.
GithubRejected
GitHub refused the broker’s request for the token.
InstallationNotVisible
The installation isn’t one this person’s own GitHub sign-in can see (it may be another person’s, or access was lost).
StateInvalid
The install state was used, expired or unknown: start the install again.
InstallationTooLarge
The installation shows more repositories than AgentMux Cloud takes.
Other
Anything else: the status and the broker’s error code.
Implementations§
Source§impl BrokerError
impl BrokerError
Sourcepub fn needs_sign_in(&self) -> bool
pub fn needs_sign_in(&self) -> bool
Whether signing in to AgentMux Cloud is what fixes it. The other
NotSignedIn reasons (“not running yet”, “the key can’t be read”) are not.
Trait Implementations§
Source§impl Clone for BrokerError
impl Clone for BrokerError
Source§fn clone(&self) -> BrokerError
fn clone(&self) -> BrokerError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BrokerError
impl Debug for BrokerError
Source§impl Display for BrokerError
impl Display for BrokerError
impl Eq for BrokerError
Source§impl From<BrokerError> for TokenError
impl From<BrokerError> for TokenError
Source§fn from(e: BrokerError) -> Self
fn from(e: BrokerError) -> Self
Source§impl PartialEq for BrokerError
impl PartialEq for BrokerError
impl StructuralPartialEq for BrokerError
Auto Trait Implementations§
impl Freeze for BrokerError
impl RefUnwindSafe for BrokerError
impl Send for BrokerError
impl Sync for BrokerError
impl Unpin for BrokerError
impl UnsafeUnpin for BrokerError
impl UnwindSafe for BrokerError
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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.§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.§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.§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.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 more