Skip to main content

id

Function id 

Source
pub fn id(app: &str) -> Result<DeviceId>
Available on crate feature device-id only.
Expand description

An application’s device id, from the OS installation. app is a stable, application-unique string such as a reverse domain name, 1 to 255 bytes.

Not authentication: see the module documentation. sys-lib does not cache the id; store it if you need it often.

§Errors

InvalidInput for an empty or oversized app; NoIdentifierSource when the OS keeps no usable identifier (report says why).