1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
use crate::protocol::radius_packet::RadiusPacket;
use crate::protocol::error::RadiusError;
#[cfg(all(feature = "async-radius"))]
use async_trait::async_trait;
#[cfg(all(feature = "async-radius"))]
#[async_trait]
pub trait AsyncClientTrait {
async fn send_packet(&self, _packet: &mut RadiusPacket) -> Result<(), RadiusError> {
todo!()
}
async fn send_and_receive_packet(&self, _packet: &mut RadiusPacket) -> Result<Vec<u8>, RadiusError> {
todo!()
}
}
pub trait SyncClientTrait {
fn send_packet(&mut self, _packet: &mut RadiusPacket) -> Result<(), RadiusError> {
todo!()
}
fn send_and_receive_packet(&mut self, _packet: &mut RadiusPacket) -> Result<Vec<u8>, RadiusError> {
todo!()
}
}
pub mod client;