pub enum Refusal {
RepositoryUnreadable {
location: String,
error: String,
},
RepositoryMismatch {
repository_org: String,
declared_in: String,
requested: Option<String>,
source: Source,
},
NotPermitted {
agent: String,
org: String,
source: Source,
},
PersonalNotAllowed {
agent: String,
},
NotHeld {
org: String,
source: Source,
},
Ambiguous {
org: String,
accounts: Vec<String>,
},
ContextNotHeld {
context: WorkContext,
},
DefaultUnavailable {
org: String,
},
Unresolved {
agent: String,
},
}Expand description
Why a session cannot start. Each message names the fix.
Variants§
RepositoryUnreadable
RepositoryMismatch
requested is an org id, or None for personal work.
NotPermitted
PersonalNotAllowed
NotHeld
Ambiguous
ContextNotHeld
Fields
§
context: WorkContextUnresolved
Implementations§
Trait Implementations§
impl Eq for Refusal
Source§impl Error for Refusal
impl Error for Refusal
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for Refusal
Auto Trait Implementations§
impl Freeze for Refusal
impl RefUnwindSafe for Refusal
impl Send for Refusal
impl Sync for Refusal
impl Unpin for Refusal
impl UnsafeUnpin for Refusal
impl UnwindSafe for Refusal
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