Struct fuchsia_audio::registry::Registry
source · pub struct Registry { /* private fields */ }
Implementations§
source§impl Registry
impl Registry
pub fn new(proxy: RegistryProxy) -> Self
sourcepub async fn get(&self, token_id: TokenId) -> Option<DeviceInfo>
pub async fn get(&self, token_id: TokenId) -> Option<DeviceInfo>
Returns information about the device with the given token_id
.
Returns None if there is no device with the given ID.
sourcepub async fn get_all(&self) -> BTreeMap<TokenId, DeviceInfo>
pub async fn get_all(&self) -> BTreeMap<TokenId, DeviceInfo>
Returns information about all devices in the registry.
Auto Trait Implementations§
impl Freeze for Registry
impl !RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl !UnwindSafe for Registry
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more