pub enum Error {
IO(Error),
BadFormat,
ParseInt(ParseIntError),
ParseFloat(ParseFloatError),
ParseAddr(AddrParseError),
}Expand description
all kind of error may occurs in the crate.
IO often occurs when the file is not exists in your system, it wrap an std::io::Error::NotFound. others should be consider as an error and should be fix.
Variants§
IO(Error)
contains a std::io::Error, which should be NotFound.
BadFormat
this error should appear. Otherwise it’s a situation where unexpected input appears. That is a bug.default_read!
ParseInt(ParseIntError)
ParseFloat(ParseFloatError)
ParseAddr(AddrParseError)
Trait Implementations§
Source§impl From<AddrParseError> for Error
impl From<AddrParseError> for Error
Source§fn from(err: AddrParseError) -> Self
fn from(err: AddrParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseFloatError> for Error
impl From<ParseFloatError> for Error
Source§fn from(err: ParseFloatError) -> Self
fn from(err: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(err: ParseIntError) -> Self
fn from(err: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin 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