pub enum PrResolution {
Pr(PrBadge),
NoPr,
}Expand description
The outcome for one successfully checked target (#1370).
NoPr deliberately carries no head_oid: a negative has no
verdict to be stale against, and carrying the remote head would turn every
push into a NoPr(a) → NoPr(b) map change — spuriously bumping the
change-notify that PrStatusCache::replace exists to gate. A negative that
is out of date (a PR was just opened) is corrected by the poller’s
moved-triggered immediate re-poll instead.
Variants§
Pr(PrBadge)
An open PR heads the branch; here is its badge.
NoPr
The branch was checked against GitHub and no open PR heads it —
including a branch never pushed. Serialized as pr_none: true on the
tree wire, so a client can tell “checked, none” from “not resolved” and
keep its degraded fallback quiet.
Trait Implementations§
Source§impl Clone for PrResolution
impl Clone for PrResolution
Source§fn clone(&self) -> PrResolution
fn clone(&self) -> PrResolution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrResolution
impl Debug for PrResolution
impl Eq for PrResolution
Source§impl PartialEq for PrResolution
impl PartialEq for PrResolution
impl StructuralPartialEq for PrResolution
Auto Trait Implementations§
impl Freeze for PrResolution
impl RefUnwindSafe for PrResolution
impl Send for PrResolution
impl Sync for PrResolution
impl Unpin for PrResolution
impl UnsafeUnpin for PrResolution
impl UnwindSafe for PrResolution
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.