#[non_exhaustive]pub enum RowSupport {
Mounted,
NotProducible {
reason: String,
},
}Expand description
Whether a fixture can put a given conformance row on the wire.
Returned by
WireFixtures::status_support for a
StatusRow and by
WireFixtures::feature_support for
one of the declarable feature rows. The default of
both is Mounted. An adapter never skips a row by staying
quiet: it skips one by saying, in words, that the deployment cannot produce
it.
Growable: match with a _ arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Mounted
The fixture mounts this row, and the adapter must satisfy it.
NotProducible
The deployment genuinely cannot produce this row. The row is reported as skipped — that is, unproven — with the reason attached.
Implementations§
Source§impl RowSupport
impl RowSupport
Sourcepub fn not_producible(reason: impl Into<String>) -> RowSupport
pub fn not_producible(reason: impl Into<String>) -> RowSupport
Declares that this deployment cannot produce the row, and why.
use turnframe_provider::conformance::RowSupport;
let support = RowSupport::not_producible("the endpoint answers 400, never 408");
assert!(matches!(support, RowSupport::NotProducible { .. }));Trait Implementations§
Source§impl Clone for RowSupport
impl Clone for RowSupport
Source§fn clone(&self) -> RowSupport
fn clone(&self) -> RowSupport
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 RowSupport
impl Debug for RowSupport
impl Eq for RowSupport
Source§impl Hash for RowSupport
impl Hash for RowSupport
Source§impl PartialEq for RowSupport
impl PartialEq for RowSupport
impl StructuralPartialEq for RowSupport
Auto Trait Implementations§
impl Freeze for RowSupport
impl RefUnwindSafe for RowSupport
impl Send for RowSupport
impl Sync for RowSupport
impl Unpin for RowSupport
impl UnsafeUnpin for RowSupport
impl UnwindSafe for RowSupport
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.