pub struct ProfilerWorker { /* private fields */ }
Expand description
The profiler worker struct
Trait Implementations§
Source§impl Worker for ProfilerWorker
impl Worker for ProfilerWorker
Source§fn restart(_state: Self::State) -> Result<Self>
fn restart(_state: Self::State) -> Result<Self>
Profiler worker is run per Profile request so there is no need for restart
Source§fn run(self, recv: Receiver<WorkerRpc<Self::State>>) -> Result<()>
fn run(self, recv: Receiver<WorkerRpc<Self::State>>) -> Result<()>
Run profiler worker and start a profiling session
Source§const ID: WorkerId<Self::Parameters>
const ID: WorkerId<Self::Parameters>
String identifying the Worker. Used when launching workers in separate processes
to specify which workers are supported and which worker to launch.
IDs must be unique within a given worker host.
Source§type Parameters = ProfilerWorkerParameters
type Parameters = ProfilerWorkerParameters
Parameters passed to launch the worker. Used with [
Worker::new
]. Read moreAuto Trait Implementations§
impl Freeze for ProfilerWorker
impl RefUnwindSafe for ProfilerWorker
impl Send for ProfilerWorker
impl Sync for ProfilerWorker
impl Unpin for ProfilerWorker
impl UnwindSafe for ProfilerWorker
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