Skip to main content

Crate pocx_plotter

Crate pocx_plotter 

Source
Expand description

PoCX Plotter Library

Professional cryptocurrency plotting library for PoCX blockchain Provides high-performance CPU and GPU plotting capabilities

Re-exports§

pub use buffer::PageAlignedByteBuffer;
pub use error::PoCXPlotterError;
pub use error::Result;
pub use ocl::get_gpu_device_info;
pub use ocl::GpuDeviceInfo;
pub use plotter::Plotter;
pub use plotter::PlotterTask;

Modules§

buffer
compressor
cpu_hasher
disk_writer
error
gpu_hasher
ocl
OpenCL GPU acceleration module using opencl3 with dynamic loading.
perf_monitor
plotter
utils
xpu_scheduler

Macros§

safe_unwrap
Utility macro for converting unwrap() to proper error handling

Structs§

NoOpPlotterCallback
No-op callback implementation for standalone usage
PlotterTaskBuilder
Builder for creating PlotterTask configurations programmatically

Traits§

PlotterCallback
Callback trait for plotter progress updates

Functions§

clear_plotter_callback
Clear the global plotter callback (useful for resetting between runs) NOTE: This is a no-op. OnceLock cannot be cleared or replaced. The first registered callback persists for the app lifetime. This is fine in practice since the AppHandle remains valid.
clear_stop_request
Clear the stop request (call before starting a new plot)
get_plotter_callback
Get the global plotter callback
is_stop_requested
Check if stop has been requested
request_stop
Request the plotter to stop as soon as possible
run_plotter_safe
Run the plotter with panic safety
set_plotter_callback
Set the global plotter callback NOTE: Only the first call takes effect. Subsequent calls are silently ignored due to OnceLock semantics. This is fine since the callback remains valid.