pub struct MockUpdateInstallerService { /* private fields */ }
Implementations§
Source§impl MockUpdateInstallerService
impl MockUpdateInstallerService
pub fn builder() -> MockUpdateInstallerServiceBuilder
pub fn with_states(states: Vec<State>) -> Self
pub fn with_response( start_update_response: Result<String, UpdateNotStartedReason>, ) -> Self
pub async fn run_service(self: Arc<Self>, stream: InstallerRequestStream)
pub fn assert_installer_called_with( &self, expected_args: Vec<CapturedUpdateInstallerRequest>, )
pub fn assert_reboot_controller_called_with( &self, expected_requests: Vec<CapturedRebootControllerRequest>, )
pub fn spawn_installer_service(self: Arc<Self>) -> InstallerProxy
Auto Trait Implementations§
impl !Freeze for MockUpdateInstallerService
impl !RefUnwindSafe for MockUpdateInstallerService
impl Send for MockUpdateInstallerService
impl Sync for MockUpdateInstallerService
impl Unpin for MockUpdateInstallerService
impl !UnwindSafe for MockUpdateInstallerService
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