Trait HttpOption

Source
pub trait HttpOption<'a, R, B>: HandlerOption {
    type RequestHandler: RequestHandler<B>;

    // Required method
    fn request_handler(options: Self::Options) -> Self::RequestHandler;
}
Expand description

A trait that shows the implementing type is able to create http::RequestHandlers

Required Associated Types§

Required Methods§

Source

fn request_handler(options: Self::Options) -> Self::RequestHandler

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§

Source§

impl<'a, R, B> HttpOption<'a, R, B> for BinanceOption
where R: DeserializeOwned + 'a, B: Serialize,

Available on crate feature binance only.
Source§

impl<'a, R, B> HttpOption<'a, R, B> for BitFlyerOption
where R: DeserializeOwned + 'a, B: Serialize,

Available on crate feature bitflyer only.
Source§

impl<'a, R, B> HttpOption<'a, R, B> for BybitOption
where R: DeserializeOwned + 'a, B: Serialize,

Available on crate feature bybit only.
Source§

impl<'a, R, B> HttpOption<'a, R, B> for CoincheckOption
where R: DeserializeOwned + 'a, B: Serialize,

Available on crate feature coincheck only.