[][src]Struct pact_mock_server_ffi::handles::PactHandle

#[repr(C)]pub struct PactHandle {
    pub pact: usize,
}

Wraps a Pact model struct

Fields

pact: usize

Pact reference

Implementations

impl PactHandle[src]

pub fn new(consumer: &str, provider: &str) -> Self[src]

Creates a new handle to a Pact model

pub fn with_pact<R>(&self, f: &dyn Fn(usize, &mut Pact) -> R) -> Option<R>[src]

Invokes the closure with the inner Pact model

Trait Implementations

impl Clone for PactHandle[src]

impl Debug for PactHandle[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,