Struct push_source::TestUpdateAlgorithm
source · pub struct TestUpdateAlgorithm { /* private fields */ }
Expand description
An UpdateAlgorithm that forwards updates produced by a test.
Implementations§
Trait Implementations§
source§impl UpdateAlgorithm for TestUpdateAlgorithm
impl UpdateAlgorithm for TestUpdateAlgorithm
source§fn update_device_properties<'life0, 'async_trait>(
&'life0 self,
properties: Properties
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_device_properties<'life0, 'async_trait>( &'life0 self, properties: Properties ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Update the algorithm’s knowledge of device properties.
source§fn generate_updates<'life0, 'async_trait>(
&'life0 self,
sink: Sender<Update>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn generate_updates<'life0, 'async_trait>( &'life0 self, sink: Sender<Update> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Generate updates asynchronously and push them to |sink|. This method may run
indefinitely. This method may generate duplicate updates.