Skip to main content

bus_name

Function bus_name 

Source
pub fn bus_name(app_id: &str) -> String
Expand description

Turns an app id into a legal well-known bus name: characters outside [A-Za-z0-9_-] become _, an element that is empty or starts with a digit gains a leading _, an id with a single element is put under dev.daybrite.instance., and an overlong one is replaced by a hash under that prefix.