rust-nex/rnex-core/src/nex/datastore.rs

26 lines
948 B
Rust
Raw Normal View History

2026-04-13 00:36:12 +02:00
use crate::define_rmc_proto;
use macros::rmc_struct;
2026-04-13 00:27:30 +02:00
use rnex_core::prudp::socket_addr::PRUDPSockAddr;
use std::sync::{Weak};
use rnex_core::PID;
use rnex_core::nex::remote_console::RemoteConsole;
2026-04-13 00:27:30 +02:00
use rnex_core::rmc::response::ErrorCode;
use rnex_core::rmc::protocols::secure::{Secure, RawSecure, RawSecureInfo, RemoteSecure};
2026-04-13 00:27:30 +02:00
use rnex_core::rmc::protocols::datastore::{GetMetaInfo, GetMetaParam};
use rnex_core::rmc::protocols::datastore::{DataStore, RawDataStore, RawDataStoreInfo, RemoteDataStore};
use crate::nex::user::User;
2026-04-13 00:27:30 +02:00
impl DataStore for User {
2026-04-13 00:30:10 +02:00
async fn get_meta(&self, metaparam: GetMetaParam) -> Result<GetMetaInfo, ErrorCode> {
2026-04-13 00:27:30 +02:00
// // bogus
// let info: GetMetaInfo = GetMetaInfo {
// dataid: 10,
// owner: 1121,
// size: 1024,
// name: "idk"
// }
// just trying to see what methods it tries to use
2026-04-13 00:30:10 +02:00
Err(ErrorCode::DataStore_NotFound)
2026-04-13 00:27:30 +02:00
}
}