pub enum PrintError {
InvalidSelection {
spec: String,
},
InvalidRange {
start: usize,
end: usize,
},
PageOutOfRange {
page: usize,
count: usize,
},
InvalidCopies {
copies: usize,
},
InvalidScale {
scale: f64,
},
InvalidPaper {
w: f64,
h: f64,
},
}Expand description
Printing errors.
Variants§
InvalidSelection
The page selection string could not be understood.
InvalidRange
A page range runs backwards or is empty.
PageOutOfRange
A selected page does not exist in the document.
Fields
InvalidCopies
Zero copies is not a printable job.
InvalidScale
A scale factor that cannot produce output.
InvalidPaper
A paper size with no area.
Trait Implementations§
Source§impl Debug for PrintError
impl Debug for PrintError
Source§impl Display for PrintError
impl Display for PrintError
Source§impl Error for PrintError
impl Error for PrintError
1.30.0 · 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()
Source§impl From<PrintError> for OfdError
impl From<PrintError> for OfdError
Source§fn from(source: PrintError) -> Self
fn from(source: PrintError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PrintError
impl RefUnwindSafe for PrintError
impl Send for PrintError
impl Sync for PrintError
impl Unpin for PrintError
impl UnsafeUnpin for PrintError
impl UnwindSafe for PrintError
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