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§
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>>
Object Safety§
This trait is not object safe.