pub enum SvgRenderError {
Show 13 variants
InvalidSize {
width: u32,
height: u32,
},
InvalidWorkerCount {
workers: usize,
},
VulkanLoader(LoadingError),
Vulkan(Result),
NoVulkanDevice,
SkiaContext,
SvgParse,
RenderTarget,
ReadPixels,
PngEncode,
JpegEncode,
WebpEncode,
PipelineClosed,
}Expand description
Errors that can occur during SVG rendering.
Variants§
InvalidSize
The requested render dimensions are zero or exceed i32::MAX.
InvalidWorkerCount
Pipeline worker count is 0; at least 1 worker is required.
VulkanLoader(LoadingError)
Failed to load the Vulkan shared library (e.g. vulkan-1.dll).
Vulkan(Result)
A raw Vulkan API call returned an error code.
NoVulkanDevice
No physical device with a graphics queue family was found.
SkiaContext
Skia failed to create a Vulkan-backed direct rendering context.
SvgParse
The SVG document could not be parsed by Skia’s SVG DOM parser.
RenderTarget
Skia failed to allocate the raster or GPU render target surface.
ReadPixels
Pixel readback from the render surface failed.
PngEncode
PNG encoding via Skia failed.
JpegEncode
JPEG encoding via Skia failed.
WebpEncode
WebP encoding via Skia failed.
PipelineClosed
The pipeline worker thread exited before the render job completed.
Trait Implementations§
Source§impl Debug for SvgRenderError
impl Debug for SvgRenderError
Source§impl Display for SvgRenderError
impl Display for SvgRenderError
Source§impl Error for SvgRenderError
impl Error for SvgRenderError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()