yedad_eye 0.1.0

YEDAD EYE Matrix Engine - Real-time Network Explorer and Synchronizer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// yedad_eye/src/lib.rs

pub mod aggregator;
pub mod error;
pub mod providers;
pub mod types;

use async_trait::async_trait;
use error::EyeError;
use types::NodeMatrixRow;

#[async_trait]
pub trait YedadEyeProvider: Send + Sync {
    /// واکشی وضعیت و ردیف افقی فعالیت یک نود مشخص
    async fn fetch_node_row(&self, address: &str) -> Result<NodeMatrixRow, EyeError>;
    /// بازسازی و دریافت لیست کل نودهای ثبت شده در شبکه
    async fn fetch_all_active_addresses(&self) -> Result<Vec<String>, EyeError>;
}