pub struct ProbeDef {
pub id: ProbeId,
pub kind: ProbeKind,
pub timeout: Millis,
pub origin: ProbeOrigin,
pub role: ProbeRole,
pub cadence: Cadence,
pub cost: ProbeCost,
pub side_effects: SideEffects,
pub establishes: String,
}Fields§
§id: ProbeId§kind: ProbeKind§timeout: Millis§origin: ProbeOrigin§role: ProbeRoleReadiness feeds Running/Unknown; Diagnostic never does.
cadence: Cadence§cost: ProbeCost§side_effects: SideEffects§establishes: StringWhat a pass actually shows, in plain words.
Implementations§
Source§impl ProbeDef
impl ProbeDef
Sourcepub fn check_contract(&self) -> Result<(), ProbeContractError>
pub fn check_contract(&self) -> Result<(), ProbeContractError>
The parts of the probe contract (§10) that are decidable from the definition.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ProbeDef
impl<'de> Deserialize<'de> for ProbeDef
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 ProbeDef
impl StructuralPartialEq for ProbeDef
Auto Trait Implementations§
impl Freeze for ProbeDef
impl RefUnwindSafe for ProbeDef
impl Send for ProbeDef
impl Sync for ProbeDef
impl Unpin for ProbeDef
impl UnsafeUnpin for ProbeDef
impl UnwindSafe for ProbeDef
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