pub struct AndroidAudioStreamSourceGenerator {
pub(crate) permission_delegate: Option<Arc<dyn AudioPermissionDelegate>>,
pub(crate) playback_parking: Arc<PlaybackParking>,
}Fields§
§permission_delegate: Option<Arc<dyn AudioPermissionDelegate>>§playback_parking: Arc<PlaybackParking>Shared by every source this generator creates, and by its clones; see PlaybackParking.
Implementations§
Source§impl AndroidAudioStreamSourceGenerator
impl AndroidAudioStreamSourceGenerator
pub fn new() -> Self
Sourcepub fn with_permission_delegate(
delegate: Arc<dyn AudioPermissionDelegate>,
) -> Self
pub fn with_permission_delegate( delegate: Arc<dyn AudioPermissionDelegate>, ) -> Self
Creates a generator whose capture streams ask delegate for permission before opening
the microphone.
Trait Implementations§
Source§impl Clone for AndroidAudioStreamSourceGenerator
impl Clone for AndroidAudioStreamSourceGenerator
Source§fn clone(&self) -> AndroidAudioStreamSourceGenerator
fn clone(&self) -> AndroidAudioStreamSourceGenerator
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for AndroidAudioStreamSourceGenerator
impl Default for AndroidAudioStreamSourceGenerator
Source§fn default() -> AndroidAudioStreamSourceGenerator
fn default() -> AndroidAudioStreamSourceGenerator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AndroidAudioStreamSourceGenerator
impl !RefUnwindSafe for AndroidAudioStreamSourceGenerator
impl Send for AndroidAudioStreamSourceGenerator
impl Sync for AndroidAudioStreamSourceGenerator
impl Unpin for AndroidAudioStreamSourceGenerator
impl !UnwindSafe for AndroidAudioStreamSourceGenerator
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