Enum hl7_parser::TimeParseError
source · pub enum TimeParseError {
ParsingFailed(&'static str),
InvalidComponentRange(&'static str),
}
Expand description
Errors that can occur when parsing timestamps
Variants§
ParsingFailed(&'static str)
The parsing failed for some reason parsing field this.0
InvalidComponentRange(&'static str)
The timestamp parsing failed because an invalid value (this.0
) was supplied
(that would make an invalid date/time)
Trait Implementations§
source§impl Debug for TimeParseError
impl Debug for TimeParseError
source§impl Deserialize<'static> for TimeParseError
impl Deserialize<'static> for TimeParseError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for TimeParseError
impl Display for TimeParseError
source§impl Error for TimeParseError
impl Error for TimeParseError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 TimeParseError
impl Send for TimeParseError
impl Sync for TimeParseError
impl Unpin for TimeParseError
impl UnwindSafe for TimeParseError
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