pub enum ProtocolTimestampParseError {
InvalidRfc3339(ParseError),
InvalidPrecision,
}Expand description
Error returned when parsing a protocol timestamp.
Variants§
InvalidRfc3339(ParseError)
The timestamp is not valid RFC 3339 text.
InvalidPrecision
The timestamp does not have exactly three fractional second digits.
Trait Implementations§
Source§impl Debug for ProtocolTimestampParseError
impl Debug for ProtocolTimestampParseError
Source§impl Error for ProtocolTimestampParseError
impl Error for ProtocolTimestampParseError
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 From<ParseError> for ProtocolTimestampParseError
impl From<ParseError> for ProtocolTimestampParseError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProtocolTimestampParseError
impl RefUnwindSafe for ProtocolTimestampParseError
impl Send for ProtocolTimestampParseError
impl Sync for ProtocolTimestampParseError
impl Unpin for ProtocolTimestampParseError
impl UnsafeUnpin for ProtocolTimestampParseError
impl UnwindSafe for ProtocolTimestampParseError
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