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 Freeze for MockUpdateInstallerServiceBuilder
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