subspace_farmer_components::plotting

Function plot_sector

source
pub async fn plot_sector<RE, PG>(
    options: PlotSectorOptions<'_, RE, PG>,
) -> Result<PlottedSector, PlottingError>
where RE: RecordsEncoder, PG: PieceGetter + Send + Sync,
Expand description

Plot a single sector.

This is a convenient wrapper around download_sector and encode_sector functions.

NOTE: Even though this function is async, it has blocking code inside and must be running in a separate thread in order to prevent blocking an executor.