Trait wireplumber::spa::SpaValue

source ·
pub trait SpaValue {
    type Owned: for<'a> TryFrom<&'a SpaPod>;

    // Required method
    fn add_to_builder(&self, builder: &SpaPodBuilder);
}

Required Associated Types§

source

type Owned: for<'a> TryFrom<&'a SpaPod>

Required Methods§

source

fn add_to_builder(&self, builder: &SpaPodBuilder)

Implementations on Foreign Types§

source§

impl SpaValue for Value

Available on crate feature libspa only.
source§

impl SpaValue for bool

source§

impl SpaValue for f32

source§

fn add_to_builder(&self, builder: &SpaPodBuilder)

§

type Owned = f32

source§

impl SpaValue for f64

source§

fn add_to_builder(&self, builder: &SpaPodBuilder)

§

type Owned = f64

source§

impl SpaValue for i32

source§

fn add_to_builder(&self, builder: &SpaPodBuilder)

§

type Owned = i32

source§

impl SpaValue for i64

source§

fn add_to_builder(&self, builder: &SpaPodBuilder)

§

type Owned = i64

source§

impl SpaValue for str

source§

impl SpaValue for ()

source§

fn add_to_builder(&self, builder: &SpaPodBuilder)

§

type Owned = ()

source§

impl SpaValue for Fd

Available on crate feature libspa only.
source§

fn add_to_builder(&self, builder: &SpaPodBuilder)

§

type Owned = Fd

source§

impl SpaValue for Id

Available on crate feature libspa only.
source§

fn add_to_builder(&self, builder: &SpaPodBuilder)

§

type Owned = Id

source§

impl SpaValue for spa_fraction

source§

impl SpaValue for spa_rectangle

source§

impl SpaValue for [u8]

source§

fn add_to_builder(&self, builder: &SpaPodBuilder)

§

type Owned = Vec<u8>

source§

impl<'a, T> SpaValue for [&'a dyn SpaValue<Owned = T>]
where Vec<T>: for<'f> TryFrom<&'f SpaPod>, T: for<'f> TryFrom<&'f SpaPod> + Sized,

Struct

source§

fn add_to_builder(&self, builder: &SpaPodBuilder)

§

type Owned = Vec<T>

source§

impl<T: SpaPrimitive> SpaValue for [T]
where Vec<T::Owned>: for<'a> TryFrom<&'a SpaPod>,

source§

fn add_to_builder(&self, builder: &SpaPodBuilder)

§

type Owned = Vec<<T as SpaValue>::Owned>

Implementors§