pub trait TwoWayMethod: Method {
    type Response: Constrained;
}Expand description
A protocol method which has a response.
Required Associated Types§
Sourcetype Response: Constrained
 
type Response: Constrained
The response payload for the method.
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.