pub enum JudgmentSource {
Primary,
Fallback,
}Expand description
Which path answered a JudgmentRequest.
Lets a caller or an evaluation tell a dedicated judgment backend’s answer
apart from a fallback::FallbackJudgment answer produced by its
fallback instead. A wire response that omits this field (every judgment
backend’s own wire shape does — the field is local to this seam) decodes
as Self::Primary.
Variants§
Primary
A dedicated judgment backend answered directly.
Fallback
The primary backend failed in a way a fallback can fix, and a fallback backend answered instead.
Trait Implementations§
Source§impl Clone for JudgmentSource
impl Clone for JudgmentSource
impl Copy for JudgmentSource
Source§impl Debug for JudgmentSource
impl Debug for JudgmentSource
Source§impl Default for JudgmentSource
impl Default for JudgmentSource
Source§impl<'de> Deserialize<'de> for JudgmentSource
impl<'de> Deserialize<'de> for JudgmentSource
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for JudgmentSource
Source§impl PartialEq for JudgmentSource
impl PartialEq for JudgmentSource
Source§impl Serialize for JudgmentSource
impl Serialize for JudgmentSource
impl StructuralPartialEq for JudgmentSource
Auto Trait Implementations§
impl Freeze for JudgmentSource
impl RefUnwindSafe for JudgmentSource
impl Send for JudgmentSource
impl Sync for JudgmentSource
impl Unpin for JudgmentSource
impl UnsafeUnpin for JudgmentSource
impl UnwindSafe for JudgmentSource
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