mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-03-27 08:28:16 -04:00
13 lines
285 B
Rust
13 lines
285 B
Rust
use anyhow::Result;
|
|
use async_trait::async_trait;
|
|
|
|
#[async_trait]
|
|
pub trait SendMessage<SendMsg> {
|
|
async fn send_message(&mut self, message: SendMsg) -> Result<()>;
|
|
}
|
|
|
|
#[async_trait]
|
|
pub trait ReceiveMessage<RecvMsg> {
|
|
async fn receive_message(&mut self) -> Result<RecvMsg>;
|
|
}
|