Skip to main content

Request

Trait Request 

Source
pub trait Request: 'static {
    type Contract: Contract;
    type Response: 'static;

    const NAME: &'static str;
}
Expand description

A question with a typed answer, routed to the contract’s one responder.

Required Associated Constants§

Source

const NAME: &'static str

The request’s name within its contract, such as resolve.

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§