pub enum Error {
Io(Error),
Json(Error),
Json5(Error),
Yaml(Error),
TomlDe(Error),
UnknownFormat(PathBuf),
Usage(String),
Invalid(String),
Xml(String),
}Expand description
Errors produced by the config-disassembler library.
Variants§
Io(Error)
I/O error while reading or writing a file.
Json(Error)
Failed to parse JSON.
Json5(Error)
Failed to parse JSON5.
Yaml(Error)
Failed to parse YAML.
TomlDe(Error)
Failed to parse TOML.
UnknownFormat(PathBuf)
Could not determine the file format from a path.
Usage(String)
CLI usage error.
Invalid(String)
Logical error during disassembly or reassembly.
Xml(String)
Error returned by the in-tree XML disassembler.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
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