#[non_exhaustive]pub enum Refusal {
UnembeddableFont {
font: ObjRef,
base_name: String,
},
UnrepresentableContent {
page: u32,
cause: RasterCause,
},
ForbiddenFeature {
holder: ObjRef,
kind: String,
},
}Expand description
Why a conversion refused.
The mirror of Compromise: each variant is a compromise the pipeline
would have had to make and the policy did not authorize. A caller that gets
one of these knows exactly which Policy field to widen, which is why
the refusal names the concession rather than describing the problem.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnembeddableFont
A font is used for rendering, is not embedded, and its program was not
found. Widen Policy::unembeddable_font.
UnrepresentableContent
A page carries content the level forbids and that cannot be rewritten.
Widen Policy::unrepresentable_content.
ForbiddenFeature
The document carries a feature PDF/A forbids — JavaScript, a /Launch
action, a /Movie annotation. Widen Policy::forbidden_feature.
Trait Implementations§
impl Eq for Refusal
impl StructuralPartialEq for Refusal
Auto Trait Implementations§
impl Freeze for Refusal
impl RefUnwindSafe for Refusal
impl Send for Refusal
impl Sync for Refusal
impl Unpin for Refusal
impl UnsafeUnpin for Refusal
impl UnwindSafe for Refusal
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