INNER CODE UNIT · Rust
set_alias
pythops/bluetui · src/bluetooth.rs:37
pub async fn set_alias(&self, alias: String) -> AppResult<()> {
self.device.set_alias(alias).await?;
Ok(())
}
// https://specifications.freedesktop.org/icon-naming/latest/
pub fn get_icon(name: &str) -> &'static str {
match name {
"audio-card" => " ",
"audio-input-microphone" => " ",
"audio-headphones" | "audio-headset" => " ",
"battery" => " ",
"camera-photo" => " ",
"computer" => " ",
"input-keyboard" => " ",
"input-mouse" => " ",
"input-gaming" => " ",
"phone" => " ",