pub struct AudioSetupState<Backend, Device> {Show 27 fields
pub backends: Vec<Backend>,
pub selected_backend: Backend,
pub show_input_device: bool,
pub input_devices: Vec<Device>,
pub selected_input_device: Option<Device>,
pub show_output_device: bool,
pub output_devices: Vec<Device>,
pub selected_output_device: Option<Device>,
pub show_sample_rate: bool,
pub sample_rates: Vec<i32>,
pub selected_sample_rate: Option<i32>,
pub show_bit_depth: bool,
pub bit_depths: Vec<usize>,
pub selected_bit_depth: Option<usize>,
pub show_period_frames: bool,
pub period_frames: Vec<usize>,
pub selected_period_frames: Option<usize>,
pub show_n_periods: bool,
pub n_periods: Vec<usize>,
pub selected_n_periods: Option<usize>,
pub show_exclusive: bool,
pub exclusive: bool,
pub show_sync_mode: bool,
pub sync_mode: bool,
pub plugins_loaded: bool,
pub can_start: bool,
pub status_message: String,
}Expand description
State required to render the shared audio hardware setup screen.
Fields§
§backends: Vec<Backend>§selected_backend: Backend§show_input_device: bool§input_devices: Vec<Device>§selected_input_device: Option<Device>§show_output_device: bool§output_devices: Vec<Device>§selected_output_device: Option<Device>§show_sample_rate: bool§sample_rates: Vec<i32>§selected_sample_rate: Option<i32>§show_bit_depth: bool§bit_depths: Vec<usize>§selected_bit_depth: Option<usize>§show_period_frames: bool§period_frames: Vec<usize>§selected_period_frames: Option<usize>§show_n_periods: bool§n_periods: Vec<usize>§selected_n_periods: Option<usize>§show_exclusive: bool§exclusive: bool§show_sync_mode: bool§sync_mode: bool§plugins_loaded: bool§can_start: bool§status_message: StringTrait Implementations§
Auto Trait Implementations§
impl<Backend, Device> Freeze for AudioSetupState<Backend, Device>
impl<Backend, Device> RefUnwindSafe for AudioSetupState<Backend, Device>where
Vec<Backend>: RefUnwindSafe,
Backend: RefUnwindSafe,
Vec<Device>: RefUnwindSafe,
Option<Device>: RefUnwindSafe,
impl<Backend, Device> Send for AudioSetupState<Backend, Device>
impl<Backend, Device> Sync for AudioSetupState<Backend, Device>
impl<Backend, Device> Unpin for AudioSetupState<Backend, Device>
impl<Backend, Device> UnsafeUnpin for AudioSetupState<Backend, Device>where
Vec<Backend>: UnsafeUnpin,
Backend: UnsafeUnpin,
Vec<Device>: UnsafeUnpin,
Option<Device>: UnsafeUnpin,
impl<Backend, Device> UnwindSafe for AudioSetupState<Backend, Device>where
Vec<Backend>: UnwindSafe,
Backend: UnwindSafe,
Vec<Device>: UnwindSafe,
Option<Device>: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn 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.Source§fn 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.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<State, Message> IntoBoot<State, Message> for State
impl<State, Message> IntoBoot<State, Message> for State
Source§fn into_boot(self) -> (State, Task<Message>)
fn into_boot(self) -> (State, Task<Message>)
Turns some type into the initial state of some
Application.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