blob: 3fa82df9f41f1f21f654b5298bbaa4c014d623d4 (
plain)
1
2
3
4
5
6
7
8
9
10
|
use crate::encoding::{request::Request, response::Response};
use anyhow::Result;
pub mod tcp;
#[allow(async_fn_in_trait)]
pub trait Transport {
async fn recv(&self) -> Result<Response>;
async fn send(&self, request: Request) -> Result<()>;
}
|