pub struct CaseAdapter { /* private fields */ }Expand description
A Catalogue Matrix case selected independently of an execution backend or mode.
Implementations§
Source§impl CaseAdapter
impl CaseAdapter
pub const fn new(kind: CaseKind) -> Self
pub const fn kind(self) -> CaseKind
Sourcepub const fn contract(self) -> AdapterContract
pub const fn contract(self) -> AdapterContract
Returns the metadata contract implemented by this case’s concrete adapters.
Sourcepub fn validate_spec(self, spec: &CaseSpec) -> Result<(), String>
pub fn validate_spec(self, spec: &CaseSpec) -> Result<(), String>
Rejects manifest metadata that no longer describes the executable adapters.
Sourcepub fn execute<C, O>(self, operations: &mut O, context: C) -> O::Outputwhere
O: CaseOperations<C>,
pub fn execute<C, O>(self, operations: &mut O, context: C) -> O::Outputwhere
O: CaseOperations<C>,
Dispatches to a concrete backend operation.
O is statically known at each call site. In particular, this method does not erase a
timed closure behind another trait object.
Trait Implementations§
Source§impl Clone for CaseAdapter
impl Clone for CaseAdapter
Source§fn clone(&self) -> CaseAdapter
fn clone(&self) -> CaseAdapter
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 moreimpl Copy for CaseAdapter
Source§impl Debug for CaseAdapter
impl Debug for CaseAdapter
impl Eq for CaseAdapter
Source§impl PartialEq for CaseAdapter
impl PartialEq for CaseAdapter
impl StructuralPartialEq for CaseAdapter
Auto Trait Implementations§
impl Freeze for CaseAdapter
impl RefUnwindSafe for CaseAdapter
impl Send for CaseAdapter
impl Sync for CaseAdapter
impl Unpin for CaseAdapter
impl UnsafeUnpin for CaseAdapter
impl UnwindSafe for CaseAdapter
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