Trait cfg_traits::liquidity_pools::MessageReceiver
source · pub trait MessageReceiver {
type Middleware;
type Origin;
type Message;
// Required method
fn receive(
middleware: Self::Middleware,
origin: Self::Origin,
message: Self::Message
) -> DispatchResult;
}
Expand description
The behavior of an entity that can receive messages
Required Associated Types§
sourcetype Middleware
type Middleware
The middleware by where this message is received
type Message
Required Methods§
sourcefn receive(
middleware: Self::Middleware,
origin: Self::Origin,
message: Self::Message
) -> DispatchResult
fn receive( middleware: Self::Middleware, origin: Self::Origin, message: Self::Message ) -> DispatchResult
Sends a message for origin to destination
Object Safety§
This trait is not object safe.