Skip to main content

Request

Trait Request 

Source
pub trait Request: Serialize {
    type Response: DeserializeOwned;

    const METHOD: &'static str;
}
Expand description

A client request: its method name and response type.

Required Associated Constants§

Source

const METHOD: &'static str

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§