Trait PlayitHttpClient

Source
pub trait PlayitHttpClient {
    type Error;

    // Required method
    fn call<Req: Serialize + Send, Res: DeserializeOwned, Err: DeserializeOwned>(
        &self,
        caller: &'static Location<'static>,
        path: &str,
        req: Req,
    ) -> impl Future<Output = Result<ApiResult<Res, Err>, Self::Error>>;
}

Required Associated Types§

Required Methods§

Source

fn call<Req: Serialize + Send, Res: DeserializeOwned, Err: DeserializeOwned>( &self, caller: &'static Location<'static>, path: &str, req: Req, ) -> impl Future<Output = Result<ApiResult<Res, Err>, Self::Error>>

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.

Implementors§