pub struct RerunRefused {
pub run: u64,
pub since: u64,
pub refusal: ActionRefusal,
pub status: Option<u16>,
pub message: String,
}Expand description
Why runnerd holds a repository’s automatic re-runs of its runner faults (ADR 0153): GitHub refused one in a way
that asking again soon cannot change, such as a token without Actions: write. Held for an hour, or until the config
changes, and forgotten at a restart; RepositoryStatus::rerun_refused
carries it.
Fields§
§run: u64The run whose re-run GitHub refused.
since: u64When, in seconds since the Unix epoch.
refusal: ActionRefusalThe refusal’s class.
status: Option<u16>GitHub’s HTTP status, when it answered.
message: StringWhat GitHub refused and why, as the result of the request worded it.
Implementations§
Source§impl RerunRefused
impl RerunRefused
Sourcepub fn new(result: &ActionResult, now: u64) -> RerunRefused
pub fn new(result: &ActionResult, now: u64) -> RerunRefused
What it was refused for, from result, at now.
Sourcepub fn unread(
repository: &str,
run: u64,
answer: ActionAnswer,
now: u64,
) -> RerunRefused
pub fn unread( repository: &str, run: u64, answer: ActionAnswer, now: u64, ) -> RerunRefused
What a refused read of run run of repository is held for, at now: GitHub would not show runnerd’s token
the run or its jobs, which the re-run needs first. answer is the read’s failure, as a refusal.
Trait Implementations§
Source§impl Clone for RerunRefused
impl Clone for RerunRefused
Source§impl Debug for RerunRefused
impl Debug for RerunRefused
Source§impl<'de> Deserialize<'de> for RerunRefused
impl<'de> Deserialize<'de> for RerunRefused
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 RerunRefused
Source§impl PartialEq for RerunRefused
impl PartialEq for RerunRefused
Source§impl Serialize for RerunRefused
impl Serialize for RerunRefused
impl StructuralPartialEq for RerunRefused
Auto Trait Implementations§
impl Forget for RerunRefused
impl Freeze for RerunRefused
impl Move for RerunRefused
impl RefUnwindSafe for RerunRefused
impl Send for RerunRefused
impl Sync for RerunRefused
impl Unpin for RerunRefused
impl UnsafeUnpin for RerunRefused
impl UnwindSafe for RerunRefused
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.