[−][src]Struct pact_mock_server_ffi::handles::InteractionHandle
Wraps a Pact model struct
Fields
pact: usize
Pact reference
interaction: usize
Interaction reference
Implementations
impl InteractionHandle
[src]
pub fn new(pact: PactHandle, interaction: usize) -> InteractionHandle
[src]
Creates a new handle to an Interaction
pub fn with_pact<R>(&self, f: &dyn Fn(usize, &mut Pact) -> R) -> Option<R>
[src]
Invokes the closure with the inner Pact model
pub fn with_interaction<R>(
&self,
f: &dyn Fn(usize, &mut Interaction) -> R
) -> Option<R>
[src]
&self,
f: &dyn Fn(usize, &mut Interaction) -> R
) -> Option<R>
Invokes the closure with the inner Interaction model
Trait Implementations
impl Clone for InteractionHandle
[src]
fn clone(&self) -> InteractionHandle
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InteractionHandle
[src]
Auto Trait Implementations
impl RefUnwindSafe for InteractionHandle
impl Send for InteractionHandle
impl Sync for InteractionHandle
impl Unpin for InteractionHandle
impl UnwindSafe for InteractionHandle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,