pub trait RemoteCall: Serializable {
type Return: Deserializable;
}Expand description
Marks a function type that can be sent to Telegram as an RPC call.
Return is the type Telegram will respond with.
Required Associated Types§
Sourcetype Return: Deserializable
type Return: Deserializable
The deserialized response 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.