Trait cfg_traits::liquidity_pools::MessageSender
source · pub trait MessageSender {
type Middleware;
type Origin;
type Message;
// Required method
fn send(
middleware: Self::Middleware,
origin: Self::Origin,
message: Self::Message
) -> DispatchResult;
}
Expand description
The behavior of an entity that can send messages
Required Associated Types§
sourcetype Middleware
type Middleware
The middleware by where this message is sent
Required Methods§
sourcefn send(
middleware: Self::Middleware,
origin: Self::Origin,
message: Self::Message
) -> DispatchResult
fn send( 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.