Trait wireplumber::pw::PipewireObjectExt2

source ·
pub trait PipewireObjectExt2: 'static {
    // Required methods
    fn native_info(&self) -> gconstpointer;
    fn object_id(&self) -> Result<u32, Error>;
    fn get_pw_property(&self, key: &str) -> Option<String>;
    fn get_pw_property_cstring(&self, key: &str) -> Option<CString>;
    fn with_pw_property_cstr<R, F: FnOnce(&CStr) -> R>(
        &self,
        key: &str,
        f: F
    ) -> Option<R>;
    fn with_pw_property<R, F: FnOnce(&str) -> R>(
        &self,
        key: &str,
        f: F
    ) -> Option<R>;
    fn pw_property<T: FromPipewirePropertyString>(
        &self,
        key: &str
    ) -> Result<T, Error>;
    fn pw_property_optional<T: FromPipewirePropertyString>(
        &self,
        key: &str
    ) -> Result<Option<T>, Error>;
    fn params_future(
        &self,
        id: Option<&str>,
        filter: Option<&SpaPod>
    ) -> Pin<Box<dyn Future<Output = Result<ValueIterator<SpaPod>, Error>> + 'static>>;
}

Required Methods§

source

fn native_info(&self) -> gconstpointer

source

fn object_id(&self) -> Result<u32, Error>

source

fn get_pw_property(&self, key: &str) -> Option<String>

source

fn get_pw_property_cstring(&self, key: &str) -> Option<CString>

source

fn with_pw_property_cstr<R, F: FnOnce(&CStr) -> R>( &self, key: &str, f: F ) -> Option<R>

source

fn with_pw_property<R, F: FnOnce(&str) -> R>( &self, key: &str, f: F ) -> Option<R>

source

fn pw_property<T: FromPipewirePropertyString>( &self, key: &str ) -> Result<T, Error>

source

fn pw_property_optional<T: FromPipewirePropertyString>( &self, key: &str ) -> Result<Option<T>, Error>

source

fn params_future( &self, id: Option<&str>, filter: Option<&SpaPod> ) -> Pin<Box<dyn Future<Output = Result<ValueIterator<SpaPod>, Error>> + 'static>>

Object Safety§

This trait is not object safe.

Implementors§