pub enum XfaError {
Show 17 variants
LoadFailed(String),
PacketNotFound(String),
Encrypted(String),
XmlParse(String),
FontError(String),
LayoutError(String),
LayoutFailed(String),
ParseFailed(String),
FormCalcError(String),
Io(Error),
ExtractionFailed(String),
TemplateParse(String),
BindingFailed(String),
LayoutFailedAt {
stage: String,
reason: String,
},
RenderFailed(String),
FlattenFailed(String),
UnsupportedFeature(String),
}Expand description
XfaError.
Variants§
LoadFailed(String)
LoadFailed.
PacketNotFound(String)
PacketNotFound.
Encrypted(String)
Encrypted.
XmlParse(String)
XmlParse.
FontError(String)
FontError.
LayoutError(String)
LayoutError.
LayoutFailed(String)
LayoutFailed.
ParseFailed(String)
ParseFailed.
FormCalcError(String)
FormCalcError.
Io(Error)
Io.
ExtractionFailed(String)
XFA packet extraction failed (e.g. missing /AcroForm, corrupt stream).
TemplateParse(String)
Template XML could not be parsed.
BindingFailed(String)
Data binding from datasets to template failed.
LayoutFailedAt
LayoutFailedAt. LayoutFailedAt. Layout failed at a specific pipeline stage.
Use this variant when you can identify which stage (e.g. “paginate”, “split”, “occur”) caused the failure so callers can give better diagnostics.
RenderFailed(String)
PDF content stream generation failed.
FlattenFailed(String)
Final PDF serialisation / flatten step failed.
UnsupportedFeature(String)
Feature is intentionally unsupported by the non-interactive XFA engine.
Trait Implementations§
Source§impl Error for XfaError
impl Error for XfaError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for XfaError
impl !RefUnwindSafe for XfaError
impl Send for XfaError
impl Sync for XfaError
impl Unpin for XfaError
impl UnsafeUnpin for XfaError
impl !UnwindSafe for XfaError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.