use macros::{method_id, rmc_proto}; use crate::prudp::station_url::StationUrl; use crate::rmc::response::ErrorCode; use crate::rmc::structures::qresult::QResult; #[rmc_proto(11)] pub trait Secure { #[method_id(1)] async fn register(&self, station_urls: Vec) -> Result<(QResult, u32, StationUrl), ErrorCode>; #[method_id(7)] async fn replace_url(&self, target: StationUrl, dest: StationUrl) -> Result<(), ErrorCode>; }