pub enum ActionRefusal {
NoToken,
Unreachable,
Unauthorized,
Forbidden,
NotFound,
Conflict,
Unprocessable,
RateLimited,
Failed,
Withdrawn,
Other,
}Expand description
What class of refusal an ActionOutcome::Refused was. Never GitHub’s own words.
Variants§
NoToken
runnerd could read no GitHub token: nothing was sent.
Unreachable
runnerd could not reach GitHub: nothing was sent.
GitHub refused the token: 401.
Forbidden
403: the token lacks the permission, or GitHub does not allow the action for the run now.
NotFound
404 or 410: GitHub does not show the run or the job to this token, or it is gone.
Conflict
409: the run’s state does not allow it, for a cancel while the run had not completed.
Unprocessable
422: GitHub cannot do it for this run.
RateLimited
GitHub’s rate limit is used up: nothing was sent, or GitHub refused for it.
Failed
Another error status below 500, such as a 400.
Withdrawn
runnerd’s config changed between the confirmation and the request (job actions turned off, the repositories changed): runnerd sent nothing.
Other
A class only a newer daemon knows.
Trait Implementations§
Source§impl Clone for ActionRefusal
impl Clone for ActionRefusal
impl Copy for ActionRefusal
Source§impl Debug for ActionRefusal
impl Debug for ActionRefusal
Source§impl<'de> Deserialize<'de> for ActionRefusal
impl<'de> Deserialize<'de> for ActionRefusal
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>,
impl Eq for ActionRefusal
Source§impl PartialEq for ActionRefusal
impl PartialEq for ActionRefusal
Source§impl Serialize for ActionRefusal
impl Serialize for ActionRefusal
impl StructuralPartialEq for ActionRefusal
Auto Trait Implementations§
impl Forget for ActionRefusal
impl Freeze for ActionRefusal
impl Move for ActionRefusal
impl RefUnwindSafe for ActionRefusal
impl Send for ActionRefusal
impl Sync for ActionRefusal
impl Unpin for ActionRefusal
impl UnsafeUnpin for ActionRefusal
impl UnwindSafe for ActionRefusal
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.