pub enum Error {
Invalid(String),
Unsupported(String),
Io {
path: PathBuf,
source: Error,
},
}Expand description
Why a read was refused.
Variants§
Invalid(String)
The bytes are not what the format allows (a length past the data, a bad tag, a broken reference).
Unsupported(String)
The bytes are well formed but use something the reader does not read (an unverified container version, a feature of a newer Unity).
Io
A file could not be read from disk.
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()
Source§impl From<HeightmapError> for Error
impl From<HeightmapError> for Error
Source§fn from(e: HeightmapError) -> Self
fn from(e: HeightmapError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin 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