pub struct PollTracesCtx(/* private fields */);
Expand description
A context that will be passed-in in a call to [ffi::poll_traces
] and later
passed back in the done
callback when the async operation has completed.
Implementations§
Source§impl PollTracesCtx
impl PollTracesCtx
A context to be passed into poll_traces
.
Intended to be called like:
let session: Pin<&mut PerfettoTracingSession> = todo!();
let (ctx, rx) = PollTracesCtx::new_sync();
session.poll_traces(Box::new(ctx), PollTracesCtx::callback);
let polled_traces: PolledTraces = rx.recv().unwrap(); // Should return polled traces
Auto Trait Implementations§
impl Freeze for PollTracesCtx
impl RefUnwindSafe for PollTracesCtx
impl Send for PollTracesCtx
impl Sync for PollTracesCtx
impl Unpin for PollTracesCtx
impl UnwindSafe for PollTracesCtx
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