struct ReporterSink {
reporter: Arc<Mutex<Option<PlaybackReporter>>>,
}Expand description
The production sink: hands each operation to the PlaybackReporter.
Reports originate on whatever thread playback ended or ticked on — including JNI callbacks with no Tokio runtime attached — so the spawn falls back to a throwaway runtime on its own thread rather than assuming one is current.
Fields§
§reporter: Arc<Mutex<Option<PlaybackReporter>>>Trait Implementations§
Source§impl PlaybackReportSink for ReporterSink
impl PlaybackReportSink for ReporterSink
Source§fn send(&self, operation: PlaybackOperation)
fn send(&self, operation: PlaybackOperation)
Deliver
operation. Must not block the caller.Auto Trait Implementations§
impl Freeze for ReporterSink
impl !RefUnwindSafe for ReporterSink
impl Send for ReporterSink
impl Sync for ReporterSink
impl Unpin for ReporterSink
impl UnsafeUnpin for ReporterSink
impl !UnwindSafe for ReporterSink
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