Trait Request

Source
pub trait Request:
    Encoder
    + Decoder
    + Debug {
    type Response: Encoder + Decoder + Debug;

    const API_KEY: u16;
    const DEFAULT_API_VERSION: i16 = 0i16;
    const MIN_API_VERSION: i16 = _;
    const MAX_API_VERSION: i16 = Self::DEFAULT_API_VERSION;
}

Required Associated Constants§

Provided Associated Constants§

Source

const DEFAULT_API_VERSION: i16 = 0i16

Source

const MIN_API_VERSION: i16 = _

Source

const MAX_API_VERSION: i16 = Self::DEFAULT_API_VERSION

Required Associated Types§

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§