pub trait MessageSourceProxyInterface: Send + Sync {
type ReceiveMessagesResponseFut: Future<Output = Result<(), Error>> + Send;
type ReceiveBatonResponseFut: Future<Output = Result<LeaseBaton, Error>> + Send;
// Required methods
fn receive_messages(
&self,
socket: Socket,
) -> Self::ReceiveMessagesResponseFut;
fn receive_baton(&self) -> Self::ReceiveBatonResponseFut;
}Required Associated Types§
type ReceiveMessagesResponseFut: Future<Output = Result<(), Error>> + Send
type ReceiveBatonResponseFut: Future<Output = Result<LeaseBaton, Error>> + Send
Required Methods§
fn receive_messages(&self, socket: Socket) -> Self::ReceiveMessagesResponseFut
fn receive_baton(&self) -> Self::ReceiveBatonResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".