Trait ObsUpdatable

Source
pub trait ObsUpdatable {
    // Required methods
    fn runtime(&self) -> ObsRuntime;
    fn update_raw<'life0, 'async_trait>(
        &'life0 mut self,
        data: ObsData,
    ) -> Pin<Box<dyn Future<Output = Result<(), ObsError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn reset_and_update_raw<'life0, 'async_trait>(
        &'life0 mut self,
        data: ObsData,
    ) -> Pin<Box<dyn Future<Output = Result<(), ObsError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_settings<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<ImmutableObsData, ObsError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn create_updater<'a, 'async_trait, T>(
        &'a mut self,
    ) -> Pin<Box<dyn Future<Output = Result<T, ObsError>> + Send + 'async_trait>>
       where Self: Sized + Send + Sync + Send + 'async_trait,
             T: 'async_trait + ObsObjectUpdater<'a, ToUpdate = Self> + Send + Sync,
             'a: 'async_trait { ... }
}

Required Methods§

Source

fn runtime(&self) -> ObsRuntime

Source

fn update_raw<'life0, 'async_trait>( &'life0 mut self, data: ObsData, ) -> Pin<Box<dyn Future<Output = Result<(), ObsError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn reset_and_update_raw<'life0, 'async_trait>( &'life0 mut self, data: ObsData, ) -> Pin<Box<dyn Future<Output = Result<(), ObsError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

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

Provided Methods§

Source

fn create_updater<'a, 'async_trait, T>( &'a mut self, ) -> Pin<Box<dyn Future<Output = Result<T, ObsError>> + Send + 'async_trait>>
where Self: Sized + Send + Sync + Send + 'async_trait, T: 'async_trait + ObsObjectUpdater<'a, ToUpdate = Self> + Send + Sync, 'a: 'async_trait,

Updates the object with the current settings. For examples please take a look at the Github repository.

Implementors§