Skip to main content

try_generate_device_id

Function try_generate_device_id 

Source
fn try_generate_device_id(forbidden_ids: &[String]) -> Option<OwnedDeviceId>
Expand description

Tries at most 3 times to generate a new [DeviceId] that does not conflict with the given forbidden_ids.