gstreamer_audio::prelude

Trait StreamVolumeExt

Source
pub trait StreamVolumeExt:
    IsA<StreamVolume>
    + Sealed
    + 'static {
    // Provided methods
    fn is_muted(&self) -> bool { ... }
    fn volume(&self, format: StreamVolumeFormat) -> f64 { ... }
    fn set_mute(&self, mute: bool) { ... }
    fn set_volume(&self, format: StreamVolumeFormat, val: f64) { ... }
    fn connect_mute_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_volume_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn is_muted(&self) -> bool

Source

fn volume(&self, format: StreamVolumeFormat) -> f64

Source

fn set_mute(&self, mute: bool)

Source

fn set_volume(&self, format: StreamVolumeFormat, val: f64)

Source

fn connect_mute_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_volume_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§