pub trait ObsPropertyObject: ObsPropertyObjectPrivate {
// Required method
fn get_properties<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<ObsProperty>, ObsError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn get_properties_by_id<'life0, 'async_trait, T>(
id: T,
runtime: &'life0 ObsRuntime,
) -> Pin<Box<dyn Future<Output = Result<Vec<ObsProperty>, ObsError>> + Send + 'async_trait>>
where T: 'async_trait + Into<ObsString> + Sync + Send,
Self: Send + 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
This trait is implemented for all obs objects that can have properties
Required Methods§
Sourcefn get_properties<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<ObsProperty>, ObsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_properties<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<ObsProperty>, ObsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the properties of the object
Provided Methods§
fn get_properties_by_id<'life0, 'async_trait, T>( id: T, runtime: &'life0 ObsRuntime, ) -> Pin<Box<dyn Future<Output = Result<Vec<ObsProperty>, ObsError>> + Send + 'async_trait>>
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.