Trait subspace_networking::GenericRequest
source · 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 Types§
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.
Object Safety§
This trait is not object safe.