Struct wireplumber::spa::SpaProps
source · pub struct SpaProps { /* private fields */ }
Implementations§
source§impl SpaProps
impl SpaProps
pub fn with_params(params: SpaPod) -> Result<Self>
pub fn into_params(self) -> SpaPod
pub fn params(&self) -> Result<impl Iterator<Item = (String, SpaPod)>>
pub fn has_volume(&self) -> bool
pub fn mute(&self) -> bool
pub fn channel_volume(&self, channel_index: u32) -> f32
pub fn set_channel_volume( &self, channel_index: u32, volume: f32 ) -> Result<(), ()>
pub async fn from_object<O: IsA<PipewireObject>>(obj: &O) -> Result<Self>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpaProps
impl RefUnwindSafe for SpaProps
impl !Send for SpaProps
impl !Sync for SpaProps
impl Unpin for SpaProps
impl UnwindSafe for SpaProps
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