Trait trust_dns_server::server::RequestHandler[][src]

pub trait RequestHandler: Send + Unpin + 'static {
    type ResponseFuture: Future<Output = ()> + Send + Unpin + 'static;
    fn handle_request<R: ResponseHandler>(
        &self,
        request: Request,
        response_handle: R
    ) -> Self::ResponseFuture; }

Trait for handling incoming requests, and providing a message response.

Associated Types

type ResponseFuture: Future<Output = ()> + Send + Unpin + 'static[src]

A future for execution of the request

Loading content...

Required methods

fn handle_request<R: ResponseHandler>(
    &self,
    request: Request,
    response_handle: R
) -> Self::ResponseFuture
[src]

Determines what needs to happen given the type of request, i.e. Query or Update.

Arguments

  • request - the requested action to perform.
  • response_handle - handle to which a return message should be sent
Loading content...

Implementors

impl RequestHandler for Catalog[src]

type ResponseFuture = HandleRequest

fn handle_request<R: ResponseHandler>(
    &self,
    request: Request,
    response_handle: R
) -> Self::ResponseFuture
[src]

Determines what needs to happen given the type of request, i.e. Query or Update.

Arguments

  • request - the requested action to perform.
  • response_handle - sink for the response message to be sent
Loading content...