pub enum ReadError {
ScriptFormat(ScriptFormatError),
Io(Error),
Serde(Error),
}Expand description
General error type for from_path() function
Variants§
ScriptFormat(ScriptFormatError)
Emit when there are syntax error in ScriptFormat
Io(Error)
Emit when there are I/O error (i.e. cannot read file)
Serde(Error)
Emit when there are JSON error (i.e. invalid JSON syntax)
Trait Implementations§
Source§impl Error for ReadError
impl Error for ReadError
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<ScriptFormatError> for ReadError
impl From<ScriptFormatError> for ReadError
Source§fn from(error: ScriptFormatError) -> ReadError
fn from(error: ScriptFormatError) -> ReadError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReadError
impl !RefUnwindSafe for ReadError
impl Send for ReadError
impl Sync for ReadError
impl Unpin for ReadError
impl !UnwindSafe for ReadError
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