pub enum ActionFailure {
NoToken,
RateLimited {
status: Option<u16>,
until: SystemTime,
},
Status {
status: u16,
},
Unreachable,
TimedOut,
Broken,
Withdrawn,
}Expand description
Why a job action’s request, or its read of the run, got no success: a class and a status. Holds no text, so nothing GitHub wrote, and no token, can leave through it.
Variants§
NoToken
No token could be read: nothing was sent.
RateLimited
GitHub’s rate limit: status is GitHub’s answer (403 or 429), None when runnerd held the request back
itself, sending nothing.
Fields
§
until: SystemTimeWhen requests may resume.
Status
GitHub answered with this status.
Unreachable
The connection could not be made: nothing was sent.
TimedOut
No answer in time; the request may have been sent.
Broken
The connection failed otherwise; the request may have been sent.
Withdrawn
The caller’s permit said no once the token was in hand: nothing was sent.
Trait Implementations§
Source§impl Clone for ActionFailure
impl Clone for ActionFailure
impl Copy for ActionFailure
Source§impl Debug for ActionFailure
impl Debug for ActionFailure
impl Eq for ActionFailure
Source§impl PartialEq for ActionFailure
impl PartialEq for ActionFailure
impl StructuralPartialEq for ActionFailure
Auto Trait Implementations§
impl Forget for ActionFailure
impl Freeze for ActionFailure
impl Move for ActionFailure
impl RefUnwindSafe for ActionFailure
impl Send for ActionFailure
impl Sync for ActionFailure
impl Unpin for ActionFailure
impl UnsafeUnpin for ActionFailure
impl UnwindSafe for ActionFailure
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.