pub trait SyncClientTrait {
// Provided methods
fn send_packet(
&mut self,
_packet: &mut RadiusPacket,
) -> Result<(), RadiusError> { ... }
fn send_and_receive_packet(
&mut self,
_packet: &mut RadiusPacket,
) -> Result<Vec<u8>, RadiusError> { ... }
}
Expand description
This trait is to be implemented by user, if they are planning to resolve AUTH, ACCT or CoA RADIUS requests for Async RADIUS Client
Provided Methods§
Sourcefn send_packet(&mut self, _packet: &mut RadiusPacket) -> Result<(), RadiusError>
fn send_packet(&mut self, _packet: &mut RadiusPacket) -> Result<(), RadiusError>
Responsible for sending packets off to RADIUS Server ignoring any response received
Sourcefn send_and_receive_packet(
&mut self,
_packet: &mut RadiusPacket,
) -> Result<Vec<u8>, RadiusError>
fn send_and_receive_packet( &mut self, _packet: &mut RadiusPacket, ) -> Result<Vec<u8>, RadiusError>
Responsible for sending packets off to RADIUS Server returning response