feat: add register function

This commit is contained in:
DJMrTV 2025-05-07 22:57:50 +02:00
commit 33b0391ef3
5 changed files with 67 additions and 5 deletions

View file

@ -1,6 +1,7 @@
#![allow(async_fn_in_trait)]
pub mod auth;
pub mod secure;
use crate::prudp::socket::{ExternalConnection, SendingConnection};
use crate::rmc::message::RMCMessage;

View file

@ -0,0 +1,12 @@
use macros::{method_id, rmc_proto};
use crate::prudp::station_url::StationUrl;
use crate::rmc::response::ErrorCode;
use crate::rmc::structures::any::Any;
use crate::rmc::structures::connection_data::ConnectionData;
use crate::rmc::structures::qresult::QResult;
#[rmc_proto(11)]
pub trait Auth {
#[method_id(1)]
async fn register(&self, station_urls: Vec<String>) -> Result<(QResult, u32, String), ErrorCode>;
}