pub trait ProtocolClient:
Send
+ Sync
+ 'static {
type Channel: CommunicationChannel<Error = Self::Error>;
type Error: CommunicationError;
// Required method
fn connect(address: Address, route: &str) -> DynFut<Option<Self::Channel>>;
}Expand description
Required Associated Types§
Sourcetype Channel: CommunicationChannel<Error = Self::Error>
type Channel: CommunicationChannel<Error = Self::Error>
Channel used by this protocol.
Sourcetype Error: CommunicationError
type Error: CommunicationError
The error type.
Required Methods§
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.