pub trait FedTransport: Send + Sync {
// Required method
fn request<'a>(
&'a self,
destination: &'a str,
method: &'a str,
uri: &'a str,
authorization: &'a str,
body: Option<&'a Value>,
) -> ReqFuture<'a>;
// Provided method
fn request_raw<'a>(
&'a self,
_destination: &'a str,
_method: &'a str,
_uri: &'a str,
_authorization: &'a str,
_max_bytes: usize,
) -> RawFuture<'a> { ... }
}Expand description
Sends one signed federation request and returns (status, json body).
uri is the full path and query including /_matrix.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".