Trait radius::server::RequestHandler [−][src]
pub trait RequestHandler<T, E>: 'static + Sync + Send { #[must_use] fn handle_radius_request<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
conn: &'life1 UdpSocket,
request: &'life2 Request
) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait; }
Expand description
RequestHandler is a handler for the received RADIUS request.
Required methods
#[must_use]fn handle_radius_request<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
conn: &'life1 UdpSocket,
request: &'life2 Request
) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]fn handle_radius_request<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
conn: &'life1 UdpSocket,
request: &'life2 Request
) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]This method has to implement the core feature of the server application what you need.
Arguments
- conn - This connection is associated with the remote requester. In the most situations, you have to send a response through this connection object.
- request - This is a request object that comes from the remote requester.