pub enum ChainProblem {
Fork {
device: DeviceId,
seq: u64,
},
Gap {
device: DeviceId,
from: u64,
to: u64,
},
BrokenLink {
device: DeviceId,
event: EventHash,
},
}Expand description
Something in a set of events that does not fit a clean chain per device.
Variants§
Fork
Two different events of one device with the same position – the device’s history was forked.
Gap
Positions of a device are missing – events have not arrived (yet).
BrokenLink
An event does not point to the device’s previous event.
Trait Implementations§
Source§impl Clone for ChainProblem
impl Clone for ChainProblem
Source§fn clone(&self) -> ChainProblem
fn clone(&self) -> ChainProblem
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 moreSource§impl Debug for ChainProblem
impl Debug for ChainProblem
Source§impl Display for ChainProblem
impl Display for ChainProblem
impl Eq for ChainProblem
Source§impl Error for ChainProblem
impl Error for ChainProblem
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 ChainProblem
impl PartialEq for ChainProblem
impl StructuralPartialEq for ChainProblem
Auto Trait Implementations§
impl Freeze for ChainProblem
impl RefUnwindSafe for ChainProblem
impl Send for ChainProblem
impl Sync for ChainProblem
impl Unpin for ChainProblem
impl UnsafeUnpin for ChainProblem
impl UnwindSafe for ChainProblem
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