pub struct ActivateInfo {
pub sample_rate: NonZeroU32,
pub max_block_frames: NonZeroU32,
pub num_stream_in_channels: u32,
pub num_stream_out_channels: u32,
pub input_to_output_latency_seconds: f64,
}Expand description
Information about the running audio stream.
Fields§
§sample_rate: NonZeroU32The sample rate of the audio stream.
max_block_frames: NonZeroU32The maximum number of frames that can appear in a single process cyle.
num_stream_in_channels: u32The number of input audio channels in the stream.
num_stream_out_channels: u32The number of output audio channels in the stream.
input_to_output_latency_seconds: f64The latency of the input to output stream in seconds.
Trait Implementations§
Source§impl Clone for ActivateInfo
impl Clone for ActivateInfo
Source§fn clone(&self) -> ActivateInfo
fn clone(&self) -> ActivateInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ActivateInfo
Source§impl Debug for ActivateInfo
impl Debug for ActivateInfo
Source§impl PartialEq for ActivateInfo
impl PartialEq for ActivateInfo
Source§fn eq(&self, other: &ActivateInfo) -> bool
fn eq(&self, other: &ActivateInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ActivateInfo
Auto Trait Implementations§
impl Freeze for ActivateInfo
impl RefUnwindSafe for ActivateInfo
impl Send for ActivateInfo
impl Sync for ActivateInfo
impl Unpin for ActivateInfo
impl UnsafeUnpin for ActivateInfo
impl UnwindSafe for ActivateInfo
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> 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>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn 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>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which 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)
Converts
&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)
Converts
&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> DowncastSend for T
impl<T> DowncastSend 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<T> TypeData for T
impl<T> TypeData for T
Source§fn clone_type_data(&self) -> Box<dyn TypeData>
fn clone_type_data(&self) -> Box<dyn TypeData>
Creates a type-erased clone of this value.