pub enum JustPdfError {
Show 23 variants
Io(Error),
NotPdf,
UnexpectedEof {
offset: usize,
},
InvalidToken {
offset: usize,
detail: String,
},
InvalidXref {
offset: usize,
detail: String,
},
ObjectNotFound {
obj_num: u32,
gen_num: u16,
},
StreamDecode {
filter: String,
detail: String,
},
CircularReference {
obj_num: u32,
gen_num: u16,
},
UnsupportedVersion {
version: String,
},
InvalidObject {
offset: usize,
detail: String,
},
StartXrefNotFound,
TrailerNotFound,
AnnotationError {
detail: String,
},
FormError {
detail: String,
},
EncryptionError {
detail: String,
},
IncorrectPassword,
UnsupportedEncryption {
detail: String,
},
EncryptedDocument,
SignatureError {
detail: String,
},
OutlineError {
detail: String,
},
EmbeddedFileError {
detail: String,
},
OptionalContentError {
detail: String,
},
RepairError {
detail: String,
},
}Expand description
All errors that can occur in justpdf-core.
Variants§
Io(Error)
NotPdf
UnexpectedEof
InvalidToken
InvalidXref
ObjectNotFound
StreamDecode
CircularReference
UnsupportedVersion
InvalidObject
StartXrefNotFound
TrailerNotFound
AnnotationError
FormError
EncryptionError
IncorrectPassword
UnsupportedEncryption
EncryptedDocument
SignatureError
OutlineError
EmbeddedFileError
OptionalContentError
RepairError
Trait Implementations§
Source§impl Debug for JustPdfError
impl Debug for JustPdfError
Source§impl Display for JustPdfError
impl Display for JustPdfError
Source§impl Error for JustPdfError
impl Error for JustPdfError
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 JustPdfError
impl !RefUnwindSafe for JustPdfError
impl Send for JustPdfError
impl Sync for JustPdfError
impl Unpin for JustPdfError
impl UnsafeUnpin for JustPdfError
impl !UnwindSafe for JustPdfError
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> 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 more