pub trait Requester {
// Required method
fn request<S, T, V>(
&self,
subject: S,
payload: &T,
) -> impl Future<Output = Result<V, RequestError>>
where S: ToSubject,
T: ?Sized + Serialize,
V: DeserializeOwned;
}
Required Methods§
fn request<S, T, V>( &self, subject: S, payload: &T, ) -> impl Future<Output = Result<V, RequestError>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.