pub enum RepoProbe {
Body(String),
Missing,
AuthDenied,
RateLimited,
Inconclusive(String),
}Expand description
Terminal classification of a single GET /repos/{owner}/{repo} probe,
carrying enough to distinguish a transient rate-limit 403 from an auth 403.
Variants§
Body(String)
2xx — carries the response body for permissions.push inspection.
Missing
404 — repo missing under an otherwise-good token.
AuthDenied
401 / 403 with NO rate-limit signal — the token cannot access the repo.
RateLimited
429, or a 401 / 403 carrying a rate-limit signal (GitHub returns 403 for
both secondary-rate-limit and auth denial, distinguishable only by the
Retry-After / X-RateLimit-Remaining: 0 headers) — transient.
Inconclusive(String)
5xx, an unexpected status, or a transport failure — verdict unknown.
Auto Trait Implementations§
impl Freeze for RepoProbe
impl RefUnwindSafe for RepoProbe
impl Send for RepoProbe
impl Sync for RepoProbe
impl Unpin for RepoProbe
impl UnsafeUnpin for RepoProbe
impl UnwindSafe for RepoProbe
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