Function handle

Source
pub async fn handle<H: Handler>(
    handler: &mut H,
    send: &mut SendStream,
    recv: &mut RecvStream,
) -> Result<(), HandlerError>
Expand description

Handles requests to an agent.

ยงErrors

  • HandlerError::RecvError if the request could not be received
  • HandlerError::SendError if the response could not be sent