pub enum StockError {
Io {
path: PathBuf,
source: Error,
},
Syntax {
path: PathBuf,
line: usize,
message: String,
},
Check {
path: PathBuf,
stage: String,
message: String,
},
}Expand description
What can go wrong reading a stock file.
Variants§
Io
The file could not be read.
Syntax
A syntax error, with the line it was on.
Fields
Check
A field that is missing, malformed or inconsistent.
Trait Implementations§
Source§impl Debug for StockError
impl Debug for StockError
Source§impl Display for StockError
impl Display for StockError
Source§impl Error for StockError
impl Error for StockError
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 StockError
impl !UnwindSafe for StockError
impl Forget for StockError
impl Freeze for StockError
impl Move for StockError
impl Send for StockError
impl Sync for StockError
impl Unpin for StockError
impl UnsafeUnpin for StockError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more