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.
pub fn start_update_response( self, start_update_response: Result<String, UpdateNotStartedReason> ) -> Self
pub fn build(self) -> MockUpdateInstallerService
Auto Trait Implementations§
impl !RefUnwindSafe for MockUpdateInstallerServiceBuilder
impl Send for MockUpdateInstallerServiceBuilder
impl Sync for MockUpdateInstallerServiceBuilder
impl Unpin for MockUpdateInstallerServiceBuilder
impl !UnwindSafe for MockUpdateInstallerServiceBuilder
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