Struct pact_proxy_rs::server::PactServer
source · pub struct PactServer { /* private fields */ }
Implementations§
source§impl PactServer
impl PactServer
pub fn port(&self) -> Result<Port, Box<dyn Error>>
pub fn with_http_server(
pacts_folder: &Path,
pacts: Option<HashMap<(String, String), V4Pact>>,
port: Option<Port>
) -> Result<Self, Box<dyn Error>>
pub async fn start_blocking(&mut self) -> Result<(), Box<dyn Error>>
pub async fn start_non_blocking(&mut self) -> Result<()>
pub fn stop(&mut self) -> Result<(), Box<dyn Error>>
pub fn is_running(&self) -> bool
Auto Trait Implementations§
impl !RefUnwindSafe for PactServer
impl Send for PactServer
impl Sync for PactServer
impl Unpin for PactServer
impl !UnwindSafe for PactServer
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request