pub enum TimeScaleConversionError {
Expected {
expected: TimeScale,
actual: TimeScale,
},
NonFiniteOffset,
}Expand description
Error returned when a caller-provided time-scale conversion fails.
Variants§
Expected
Time scale required by the conversion helper.
Fields
NonFiniteOffset
The supplied offset was not a finite number of seconds.
Implementations§
Source§impl TimeScaleConversionError
impl TimeScaleConversionError
Sourcepub fn summary_line(&self) -> String
pub fn summary_line(&self) -> String
Returns a compact one-line rendering of the conversion failure.
Trait Implementations§
Source§impl Clone for TimeScaleConversionError
impl Clone for TimeScaleConversionError
Source§fn clone(&self) -> TimeScaleConversionError
fn clone(&self) -> TimeScaleConversionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimeScaleConversionError
Source§impl Debug for TimeScaleConversionError
impl Debug for TimeScaleConversionError
Source§impl Display for TimeScaleConversionError
impl Display for TimeScaleConversionError
impl Eq for TimeScaleConversionError
Source§impl Error for TimeScaleConversionError
impl Error for TimeScaleConversionError
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 PartialEq for TimeScaleConversionError
impl PartialEq for TimeScaleConversionError
impl StructuralPartialEq for TimeScaleConversionError
Auto Trait Implementations§
impl Freeze for TimeScaleConversionError
impl RefUnwindSafe for TimeScaleConversionError
impl Send for TimeScaleConversionError
impl Sync for TimeScaleConversionError
impl Unpin for TimeScaleConversionError
impl UnsafeUnpin for TimeScaleConversionError
impl UnwindSafe for TimeScaleConversionError
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