Skip to main content

Crate relay_ua

Crate relay_ua 

Source
Expand description

User agent parser with built-in rules.

§Test Performance

Adding user agent parsing to your module will incur a latency penalty on first use. Because of this, integration tests could fail. To fix this, you will need to add a timeout to your consumer.

Structs§

Device
Describes the family, brand, and model of a device.
OS
Describes the family as well as the major, minor, patch, and patch minor versions of an operating system.
UserAgent
Describes the family as well as the major, minor, and patch versions of a user agent client.

Functions§

init_parser
Initializes the user agent parser.
parse_device
Returns the family, brand, and model of the device of the requesting client.
parse_os
Returns the family and version of the operating system of the requesting client.
parse_user_agent
Returns the family and version of a user agent client.