pub trait RpcDescriptor {
type Input: Serialize;
type Output: DeserializeOwned;
const KEY: &'static str;
const SUBJECT: &'static str;
const CALLER_CAPABILITIES: &'static [&'static str];
const ERRORS: &'static [&'static str];
}Expand description
Metadata required to call one typed Trellis RPC.
Required Associated Constants§
Sourceconst CALLER_CAPABILITIES: &'static [&'static str]
const CALLER_CAPABILITIES: &'static [&'static str]
Capability requirements declared for callers.
Required Associated Types§
Sourcetype Output: DeserializeOwned
type Output: DeserializeOwned
Success payload type.
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.