#[non_exhaustive]pub enum SplitError {
NoDuration {
at: OffsetDateTime,
},
ImplausiblyLong {
days: i64,
},
NonMonotonic {
at: OffsetDateTime,
},
}Expand description
Why a session could not be split.
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.
NoDuration
The first and last readings are at the same instant.
Fields
§
at: OffsetDateTimeThe instant.
ImplausiblyLong
The session spans more than a year.
NonMonotonic
A cumulative value decreased.
Fields
§
at: OffsetDateTimeWhere.
Trait Implementations§
Source§impl Clone for SplitError
impl Clone for SplitError
Source§impl Debug for SplitError
impl Debug for SplitError
Source§impl Display for SplitError
impl Display for SplitError
impl Eq for SplitError
Source§impl Error for SplitError
impl Error for SplitError
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 From<SplitError> for SessionError
impl From<SplitError> for SessionError
Source§fn from(source: SplitError) -> Self
fn from(source: SplitError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SplitError
impl PartialEq for SplitError
impl StructuralPartialEq for SplitError
Auto Trait Implementations§
impl Forget for SplitError
impl Freeze for SplitError
impl Move for SplitError
impl RefUnwindSafe for SplitError
impl Send for SplitError
impl Sync for SplitError
impl Unpin for SplitError
impl UnsafeUnpin for SplitErrorwhere
NonZeroI32Inner: UnsafeUnpin,
impl UnwindSafe for SplitError
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