pub enum PtsCheckResult {
Ok,
Gap {
expected: i32,
got: i32,
},
Duplicate,
}Variants§
Ok
pts is in order — process the update.
Gap
pts jumped forward — there is a gap; must call getDifference.
Duplicate
pts is in the past — update already seen; discard.
Trait Implementations§
Source§impl Debug for PtsCheckResult
impl Debug for PtsCheckResult
Source§impl PartialEq for PtsCheckResult
impl PartialEq for PtsCheckResult
impl Eq for PtsCheckResult
impl StructuralPartialEq for PtsCheckResult
Auto Trait Implementations§
impl Freeze for PtsCheckResult
impl RefUnwindSafe for PtsCheckResult
impl Send for PtsCheckResult
impl Sync for PtsCheckResult
impl Unpin for PtsCheckResult
impl UnsafeUnpin for PtsCheckResult
impl UnwindSafe for PtsCheckResult
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more