feat: refactor prudp code and start working on refactoring rmc
This commit is contained in:
parent
7d24a71f09
commit
3ea7c7e671
37 changed files with 2029 additions and 456 deletions
17
src/rmc/protocols/mod.rs
Normal file
17
src/rmc/protocols/mod.rs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
use std::sync::Arc;
|
||||
use async_trait::async_trait;
|
||||
use tokio::sync::Mutex;
|
||||
use crate::prudp::socket::ExternalConnection;
|
||||
use crate::rmc::structures::connection_data::ConnectionData;
|
||||
|
||||
pub trait RmcCallable{
|
||||
fn rmc_call(protocol_id: u8, method_id: u8, rest: Vec<u8>);
|
||||
}
|
||||
|
||||
struct LocalRmcObjectWrapper<T: RmcCallable>(T);
|
||||
impl<T: RmcCallable> LocalRmcObjectWrapper<T>{
|
||||
pub fn new(object: T, conn: ExternalConnection) -> Self{
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue