Skip to main content

Transport

Trait Transport 

Source
pub(crate) trait Transport: Send + Sync {
    // Required method
    fn call(
        &self,
        method: &str,
        path: &str,
        query: &[(String, String)],
        body: &str,
    ) -> Result<Response, String>;
}
Expand description

The network boundary this provider drives, isolated so tests can replace it with something that records calls and returns canned XML instead of reaching the real Route53 API — which there is no AWS account to test against in this environment. HttpTransport is the only real implementation. The tests in sigv4 check each step of the signature it sends against AWS’s published signing test suite.

Required Methods§

Source

fn call( &self, method: &str, path: &str, query: &[(String, String)], body: &str, ) -> Result<Response, String>

Implementations on Foreign Types§

Source§

impl Transport for Arc<FakeAws>

Source§

fn call( &self, method: &str, path: &str, query: &[(String, String)], body: &str, ) -> Result<Response, String>

Implementors§