pub struct Info(pub Info);Expand description
Device info from the fuchsia.audio.device/Registry protocol.
Tuple Fields§
§0: InfoImplementations§
Source§impl Info
impl Info
pub fn token_id(&self) -> TokenId
pub fn registry_selector(&self) -> RegistrySelector
pub fn device_type(&self) -> Type
pub fn device_name(&self) -> &str
pub fn unique_instance_id(&self) -> Option<UniqueInstanceId>
pub fn plug_detect_capabilities(&self) -> Option<PlugDetectCapabilities>
pub fn gain_capabilities(&self) -> Option<GainCapabilities>
pub fn clock_domain(&self) -> Option<ClockDomain>
pub fn supported_ring_buffer_formats( &self, ) -> Result<BTreeMap<ElementId, Vec<PcmFormatSet>>, String>
pub fn supported_dai_formats( &self, ) -> Result<BTreeMap<ElementId, Vec<DaiFormatSet>>, String>
Trait Implementations§
impl StructuralPartialEq for Info
Auto Trait Implementations§
impl Freeze for Info
impl RefUnwindSafe for Info
impl Send for Info
impl Sync for Info
impl Unpin for Info
impl UnwindSafe for Info
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more