pub trait Method {
type Request: Wire;
type Response: Wire;
const ID: u64;
const NAME: &'static str;
const REQUEST_LIMITS: Limits;
const RESPONSE_LIMITS: Limits;
}Expand description
One consumer-owned endpoint contract. IDs must be unique across incompatible layouts and methods. A source rename alone must not change its identity.
Required Associated Constants§
Sourceconst REQUEST_LIMITS: Limits
const REQUEST_LIMITS: Limits
Request admission budget.
Sourceconst RESPONSE_LIMITS: Limits
const RESPONSE_LIMITS: Limits
Reply admission budget.
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".