pub struct PeerVerdict {
pub runtime: String,
pub state: LinkState,
pub dialed: bool,
pub round_trip: Option<bool>,
pub rtt_ms: Option<u64>,
pub converged: Option<bool>,
pub detail: String,
}Expand description
What one sync round, run now rather than remembered, said about one peer. Verification does not report the link’s standing and stop there: it exchanges with the peer and says whether the exchange worked and whether both sides ended holding the same marks, which is the difference between a peer that answers and a peer that agrees.
round_trip and converged are optional because a peer this runtime does not dial is
not asked — an absent answer is not a failed one, and reporting false there would
make an inbound-only link look broken every time.
a.dial(&["b:1".into()]).unwrap();
let dialer: &PeerVerdict = &a.verify().peers[0];
assert_eq!(dialer.round_trip, Some(true), "asked, and answered");
let answerer = &b.verify().peers[0];
assert!(!answerer.dialed, "B does not dial A, so B asks nothing of it");
assert_eq!(answerer.round_trip, None, "and reports no verdict it did not earn");Fields§
§runtime: StringThe peer’s runtime key.
state: LinkStateThe link’s standing after the round.
dialed: boolWhether this runtime dials the peer (and so ran a round with it now).
round_trip: Option<bool>Whether the round succeeded; None when the peer dials this runtime instead.
rtt_ms: Option<u64>The round trip, milliseconds.
converged: Option<bool>Whether both sides hold the same high-water mark of every stream after the round.
detail: StringWhat happened.
Trait Implementations§
Source§impl Clone for PeerVerdict
impl Clone for PeerVerdict
Source§fn clone(&self) -> PeerVerdict
fn clone(&self) -> PeerVerdict
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PeerVerdict
impl Debug for PeerVerdict
Source§impl<'de> Deserialize<'de> for PeerVerdict
impl<'de> Deserialize<'de> for PeerVerdict
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>,
Source§impl JsonSchema for PeerVerdict
impl JsonSchema for PeerVerdict
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more