pub enum AudioDeviceAttributeKey<'a> {
Mode,
IdentIn,
IdentOut,
BSize,
SRate,
Bps,
Custom(Cow<'a, ReaperStr>),
}
Expand description
Determines which info about the audio device shall be returned.
Variants
Mode
No idea.
IdentIn
Identifier of input device.
IdentOut
Identifier of output device.
BSize
Buffer size.
SRate
Sample rate.
Bps
Resolution.
Custom(Cow<'a, ReaperStr>)
If a variant is missing in this enum, you can use this custom one as a resort.
Use custom()
to create this variant.
Implementations
sourceimpl<'a> AudioDeviceAttributeKey<'a>
impl<'a> AudioDeviceAttributeKey<'a>
sourcepub fn custom(key: impl Into<ReaperStringArg<'a>>) -> Self
pub fn custom(key: impl Into<ReaperStringArg<'a>>) -> Self
Convenience function for creating a Custom
key.
Trait Implementations
sourceimpl<'a> Clone for AudioDeviceAttributeKey<'a>
impl<'a> Clone for AudioDeviceAttributeKey<'a>
sourcefn clone(&self) -> AudioDeviceAttributeKey<'a>
fn clone(&self) -> AudioDeviceAttributeKey<'a>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for AudioDeviceAttributeKey<'a>
impl<'a> Debug for AudioDeviceAttributeKey<'a>
sourceimpl<'a> Hash for AudioDeviceAttributeKey<'a>
impl<'a> Hash for AudioDeviceAttributeKey<'a>
sourceimpl<'a> PartialEq<AudioDeviceAttributeKey<'a>> for AudioDeviceAttributeKey<'a>
impl<'a> PartialEq<AudioDeviceAttributeKey<'a>> for AudioDeviceAttributeKey<'a>
sourcefn eq(&self, other: &AudioDeviceAttributeKey<'a>) -> bool
fn eq(&self, other: &AudioDeviceAttributeKey<'a>) -> bool
impl<'a> Eq for AudioDeviceAttributeKey<'a>
impl<'a> StructuralEq for AudioDeviceAttributeKey<'a>
impl<'a> StructuralPartialEq for AudioDeviceAttributeKey<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for AudioDeviceAttributeKey<'a>
impl<'a> Send for AudioDeviceAttributeKey<'a>
impl<'a> Sync for AudioDeviceAttributeKey<'a>
impl<'a> Unpin for AudioDeviceAttributeKey<'a>
impl<'a> UnwindSafe for AudioDeviceAttributeKey<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read moresourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more