pub enum ProtocolSource {
Matrix,
SpecFallback(String),
}Expand description
PP-33 — where a ProtocolParams came from.
Not a boolean: the fallback carries the reason it was taken, because “the
matrix has no protocol: block” and “the matrix does not parse as YAML” ask
for different fixes and a receipt that says only “fallback” tells the reader
neither.
Variants§
Matrix
Read from the compiled-in scripts/perf-matrix.yaml.
SpecFallback(String)
The matrix could not supply them; the reason is carried verbatim.
Implementations§
Source§impl ProtocolSource
impl ProtocolSource
Sourcepub fn announcement(&self) -> String
pub fn announcement(&self) -> String
The single line the producer prints before the first request.
Sourcepub fn unproduced_note(&self) -> Option<String>
pub fn unproduced_note(&self) -> Option<String>
The unproduced_fields entry, or None when the matrix supplied the
parameters and there is nothing unproduced.
Trait Implementations§
Source§impl Clone for ProtocolSource
impl Clone for ProtocolSource
Source§impl Debug for ProtocolSource
impl Debug for ProtocolSource
impl Eq for ProtocolSource
Source§impl PartialEq for ProtocolSource
impl PartialEq for ProtocolSource
impl StructuralPartialEq for ProtocolSource
Auto Trait Implementations§
impl Freeze for ProtocolSource
impl RefUnwindSafe for ProtocolSource
impl Send for ProtocolSource
impl Sync for ProtocolSource
impl Unpin for ProtocolSource
impl UnsafeUnpin for ProtocolSource
impl UnwindSafe for ProtocolSource
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more