#[non_exhaustive]pub enum TimingError {
ExchangeReversed,
RttTooLarge {
rtt_us: u64,
max_us: u64,
},
BodyTooLarge {
max: usize,
},
NotUtf8,
SchemeNotSampled(UtcScheme),
DateTime(DateTimeError),
}Expand description
Why a clock sample could not be built.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ExchangeReversed
The response arrived before the request was sent.
RttTooLarge
The round trip is too long to trust.
BodyTooLarge
A UTC response body above the cap.
NotUtf8
A UTC response body that is not UTF-8.
SchemeNotSampled(UtcScheme)
The scheme has no body time this core can read.
DateTime(DateTimeError)
The time text was not accepted.
Trait Implementations§
Source§impl Clone for TimingError
impl Clone for TimingError
impl Copy for TimingError
Source§impl Debug for TimingError
impl Debug for TimingError
Source§impl Display for TimingError
impl Display for TimingError
impl Eq for TimingError
Source§impl Error for TimingError
impl Error for TimingError
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<DateTimeError> for TimingError
impl From<DateTimeError> for TimingError
Source§fn from(source: DateTimeError) -> Self
fn from(source: DateTimeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TimingError
impl PartialEq for TimingError
impl StructuralPartialEq for TimingError
Auto Trait Implementations§
impl Forget for TimingError
impl Freeze for TimingError
impl RefUnwindSafe for TimingError
impl Send for TimingError
impl Sync for TimingError
impl Unpin for TimingError
impl UnsafeUnpin for TimingError
impl UnwindSafe for TimingError
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