#[non_exhaustive]pub enum Error {
TargetTooLarge {
width: u32,
height: u32,
limit: u32,
},
TargetEmpty {
width: u32,
height: u32,
},
Limit(LimitExceeded),
Png(String),
Io(String),
}Expand description
A render that could not produce a pixmap.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
TargetTooLarge
The requested target exceeds what a backend can allocate.
vello_cpu sizes every scene, pixmap and mask with u16, so 65535 is
the hard ceiling in either axis; the bound is enforced in the engine so
both backends agree rather than one of them failing later.
Fields
TargetEmpty
The requested target has a zero axis, so there is nothing to render into.
Limit(LimitExceeded)
RenderSession::deadline passed:
before the target was allocated, or during the walk, which stops at
the next object and reports here rather than handing back a page with
the rest missing.
Png(String)
png only.A PNG could not be encoded — only with the png feature. The
encoder’s own message, since its error type is neither comparable nor
cloneable and this one is both.
Io(String)
png only.A file could not be written — only with the png feature; the I/O
error’s message.
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
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()
Source§impl From<EncodingError> for Error
Available on crate feature png only.
impl From<EncodingError> for Error
png only.