#[non_exhaustive]pub enum ProguardError {
Io(Error),
File {
path: PathBuf,
source: Error,
},
Syntax {
line: usize,
reason: &'static str,
},
}Expand description
Why a mapping file could not be read at all.
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.
Io(Error)
Reading the mapping from a reader failed (or it is not UTF-8).
File
The mapping file could not be read (or is not UTF-8).
Syntax
A line that is not mapping syntax at all.
Trait Implementations§
Source§impl Debug for ProguardError
impl Debug for ProguardError
Source§impl Display for ProguardError
impl Display for ProguardError
Source§impl Error for ProguardError
impl Error for ProguardError
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 !RefUnwindSafe for ProguardError
impl !UnwindSafe for ProguardError
impl Forget for ProguardError
impl Freeze for ProguardError
impl Move for ProguardError
impl Send for ProguardError
impl Sync for ProguardError
impl Unpin for ProguardError
impl UnsafeUnpin for ProguardError
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