pub trait ProtoServiceTypes:
Debug
+ Clone
+ Send {
type PC: Message + Clone + 'static;
type PR: Message + Clone + Default + 'static;
type STATS: StatsCollector<Self::PC, Self::PR> + 'static;
const URL: &'static str;
}
Expand description
Types that we send and receive over a service endpoint.
Required Associated Constants§
Required Associated Types§
type PC: Message + Clone + 'static
type PR: Message + Clone + Default + 'static
type STATS: StatsCollector<Self::PC, Self::PR> + 'static
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.