pub trait GenericRequest:
Encode
+ Decode
+ Send
+ Sync
+ 'static {
type Response: Encode + Decode + Send + Sync + 'static;
const PROTOCOL_NAME: &'static str;
const LOG_TARGET: &'static str;
}
Expand description
Generic request with associated response
Required Associated Constants§
sourceconst PROTOCOL_NAME: &'static str
const PROTOCOL_NAME: &'static str
Defines request-response protocol name.
sourceconst LOG_TARGET: &'static str
const LOG_TARGET: &'static str
Specifies log-parameters for tracing.
Required Associated Types§
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.