url::ErrorHandler [-]  [+] [src]

type ErrorHandler = fn(reason: ParseError) -> ParseResult<()>;

This is called on non-fatal parse errors.

The handler can choose to continue or abort parsing by returning Ok() or Err(), respectively. See the UrlParser::error_handler method.

FIXME: make this a by-ref closure when that’s supported.