Trait ObsObjectUpdater

Source
pub trait ObsObjectUpdater<'a> {
    type ToUpdate: ObsUpdatable;

    // Required methods
    fn create_update<'async_trait>(
        runtime: ObsRuntime,
        updatable: &'a mut Self::ToUpdate,
    ) -> Pin<Box<dyn Future<Output = Result<Self, ObsError>> + Send + 'async_trait>>
       where 'a: 'async_trait,
             Self: Sized + 'async_trait;
    fn get_settings(&self) -> &ObsData;
    fn get_settings_updater(&mut self) -> &mut ObsDataUpdater;
    fn update<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = Result<(), ObsError>> + Send + 'async_trait>>
       where Self: 'async_trait;
    fn get_id() -> ObsString;
}

Required Associated Types§

Required Methods§

Source

fn create_update<'async_trait>( runtime: ObsRuntime, updatable: &'a mut Self::ToUpdate, ) -> Pin<Box<dyn Future<Output = Result<Self, ObsError>> + Send + 'async_trait>>
where 'a: 'async_trait, Self: Sized + 'async_trait,

Source

fn get_settings(&self) -> &ObsData

Source

fn get_settings_updater(&mut self) -> &mut ObsDataUpdater

Source

fn update<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<(), ObsError>> + Send + 'async_trait>>
where Self: 'async_trait,

Source

fn get_id() -> ObsString

Returns the ID of the object

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.

Implementors§