pub struct ParseTaiTimestampError;Expand description
Why a string is not a TaiTimestamp.
§Examples
use t2t_core::{ParseTaiTimestampError, TaiTimestamp};
let utc = "2026-09-16T07:46:12Z".parse::<TaiTimestamp>();
assert_eq!(utc, Err(ParseTaiTimestampError), "an instant in UTC is no instant in TAI");Trait Implementations§
Source§impl Clone for ParseTaiTimestampError
impl Clone for ParseTaiTimestampError
impl Copy for ParseTaiTimestampError
Source§impl Debug for ParseTaiTimestampError
impl Debug for ParseTaiTimestampError
Source§impl Display for ParseTaiTimestampError
impl Display for ParseTaiTimestampError
impl Eq for ParseTaiTimestampError
Source§impl Error for ParseTaiTimestampError
impl Error for ParseTaiTimestampError
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 Hash for ParseTaiTimestampError
impl Hash for ParseTaiTimestampError
Source§impl PartialEq for ParseTaiTimestampError
impl PartialEq for ParseTaiTimestampError
impl StructuralPartialEq for ParseTaiTimestampError
Auto Trait Implementations§
impl Freeze for ParseTaiTimestampError
impl RefUnwindSafe for ParseTaiTimestampError
impl Send for ParseTaiTimestampError
impl Sync for ParseTaiTimestampError
impl Unpin for ParseTaiTimestampError
impl UnsafeUnpin for ParseTaiTimestampError
impl UnwindSafe for ParseTaiTimestampError
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