Struct mock_proxy::Proxy[][src]

pub struct Proxy { /* fields omitted */ }
Expand description

Primary interface for the library

Implementations

Builds a Default instance

Register a given mock with the proxy

Panics

Will panic if proxy has already been started

Start the proxy server

Panics

Will panic if proxy has already been started

Start the server

Panics

Not supported yet

Address and port of the local server. Can be used with std::net::TcpStream.

Panics

If server is not running

A local http://… URL of the server.

Panics

If server is not running

Returns the root CA certificate of the server

Panics

If PEM conversion fails

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.