Trait Protocol
pub trait Protocol:
Sized
+ Send
+ Sync
+ Send
+ Sync {
type Request: Framer;
type Response: Framer;
type Error: IntoError;
const VERSION: &'static str;
const NAME: &'static str;
}Expand description
Defines the request and response types for the JetStream protocol.
Required Associated Constants§
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.