Trait RpcRequest

Source
pub trait RpcRequest:
    Serialize
    + DeserializeOwned
    + 'static {
    type Response: Serialize + DeserializeOwned + 'static;

    const NAME: &str;
}

Required Associated Constants§

Source

const NAME: &str

Used to identify handlers

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§