Enum hifitime::Errors
[−]
[src]
pub enum Errors { Carry, ParseError(String), }
Errors handles all oddities which may occur in this library.
Variants
Carry
Carry is returned when a provided function does not support time carry. For example,
if a call to Datetime::new
receives 60 seconds and there are only 59 seconds in the provided
date time then a Carry Error is returned as the Result.
ParseError(String)
ParseError is returned when a provided string could not be parsed and converted to the desired struct (e.g. Datetime).
Trait Implementations
impl Debug for Errors
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Display for Errors
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<ParseIntError> for Errors
[src]
fn from(error: ParseIntError) -> Self
[src]
Performs the conversion.