pub struct MockCrashReporterService { /* private fields */ }
Implementations§
Source§impl MockCrashReporterService
impl MockCrashReporterService
Sourcepub fn new(hook: impl Hook + 'static) -> Self
pub fn new(hook: impl Hook + 'static) -> Self
Creates a new MockCrashReporterService with a given callback to run per call to the service.
Sourcepub fn spawn_crash_reporter_service(
self: Arc<Self>,
) -> (CrashReporterProxy, Task<()>)
pub fn spawn_crash_reporter_service( self: Arc<Self>, ) -> (CrashReporterProxy, Task<()>)
Spawns an fasync::Task
which serves fuchsia.feedback/CrashReporter.
Sourcepub async fn run_crash_reporter_service(
self: Arc<Self>,
stream: CrashReporterRequestStream,
)
pub async fn run_crash_reporter_service( self: Arc<Self>, stream: CrashReporterRequestStream, )
Serves fuchsia.feedback/CrashReporter.FileReport requests on the given request stream.
Auto Trait Implementations§
impl Freeze for MockCrashReporterService
impl !RefUnwindSafe for MockCrashReporterService
impl Send for MockCrashReporterService
impl Sync for MockCrashReporterService
impl Unpin for MockCrashReporterService
impl !UnwindSafe for MockCrashReporterService
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