feat: refactor prudp code and start working on refactoring rmc

This commit is contained in:
DJMrTV 2025-02-18 22:55:33 +01:00
commit 3ea7c7e671
37 changed files with 2029 additions and 456 deletions

17
src/rmc/protocols/mod.rs Normal file
View 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!()
}
}