pub struct MockUpdateInstallerServiceBuilder { /* private fields */ }
Implementations§
source§impl MockUpdateInstallerServiceBuilder
impl MockUpdateInstallerServiceBuilder
sourcepub fn states(self, states: Vec<State>) -> Self
pub fn states(self, states: Vec<State>) -> Self
The mock installer will sends these states to the caller of StartUpdate. It will only work for the first StartUpdate call. Ignored if states_receiver exists.
sourcepub fn states_receiver(self, states_receiver: Receiver<State>) -> Self
pub fn states_receiver(self, states_receiver: Receiver<State>) -> Self
When the mock installer receives a state it will forward it to the caller of StartUpdate. It will only work for the first StartUpdate call.