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.
Trait Implementations§
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.