pub struct IncompleteUpcastChain {
pub kind_bits: u16,
pub current_version: u16,
pub missing_from_versions: Vec<u16>,
pub type_name: &'static str,
}Expand description
A registered payload kind whose declared PAYLOAD_VERSION > 1 is missing one
or more from_version hops in its registered upcast chain.
Such a kind compiles fine, but an event stored at any uncovered version would
be undecodable at read time (the decode seam hits UpcastError::MissingStep
with no step to run). Surfacing it lets Store::open fail closed up front.
Fields§
§kind_bits: u16Packed (category << 12) | type_id; equals EventKind::as_raw_u16.
current_version: u16The declared current payload version (always > 1 for a reported gap).
missing_from_versions: Vec<u16>The from_version hops in 1..current_version that have no registered
step, ascending. Always non-empty for a reported gap.
type_name: &'static strA registered type name for kind_bits, for diagnostics.
Trait Implementations§
Source§impl Clone for IncompleteUpcastChain
impl Clone for IncompleteUpcastChain
Source§fn clone(&self) -> IncompleteUpcastChain
fn clone(&self) -> IncompleteUpcastChain
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 IncompleteUpcastChain
impl Debug for IncompleteUpcastChain
impl Eq for IncompleteUpcastChain
Source§impl PartialEq for IncompleteUpcastChain
impl PartialEq for IncompleteUpcastChain
Source§fn eq(&self, other: &IncompleteUpcastChain) -> bool
fn eq(&self, other: &IncompleteUpcastChain) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IncompleteUpcastChain
Auto Trait Implementations§
impl Freeze for IncompleteUpcastChain
impl RefUnwindSafe for IncompleteUpcastChain
impl Send for IncompleteUpcastChain
impl Sync for IncompleteUpcastChain
impl Unpin for IncompleteUpcastChain
impl UnsafeUnpin for IncompleteUpcastChain
impl UnwindSafe for IncompleteUpcastChain
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