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<()>> + 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<()>> + 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.
Auto Trait Implementations§
impl !Freeze for TestUpdateAlgorithm
impl !RefUnwindSafe for TestUpdateAlgorithm
impl Send for TestUpdateAlgorithm
impl Sync for TestUpdateAlgorithm
impl Unpin for TestUpdateAlgorithm
impl !UnwindSafe for TestUpdateAlgorithm
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more