Trait stubr::AnyStubServer[][src]

pub trait AnyStubServer {
#[must_use]    fn register_stubs<'life0, 'async_trait>(
        &'life0 self,
        stub_folder: PathBuf
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn uri(&self) -> String; }

Abstraction over a server capable of serving stubs. Mostly used internally in a test context to also execute integration tests against a real Wiremock server instance.

Required methods

#[must_use]fn register_stubs<'life0, 'async_trait>(
    &'life0 self,
    stub_folder: PathBuf
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn uri(&self) -> String[src]

Loading content...

Implementors

impl AnyStubServer for Stubr[src]

Loading content...