pub struct ParentChainDepth {
pub schema_version: u16,
pub depth: u8,
}Expand description
Cached parent-chain depth — enables O(1) cycle / depth check (E-space-4).
Monotone, computed from parent’s depth + 1 at spawn.
Fields§
§schema_version: u16Wire-level schema version tag.
depth: u8Depth (0 = root, max MAX_SPACE_DEPTH).
Trait Implementations§
Source§impl ArkheComponent for ParentChainDepth
impl ArkheComponent for ParentChainDepth
Source§const TYPE_CODE: u32 = 197122u32
const TYPE_CODE: u32 = 197122u32
Globally stable dispatch code within the runtime
TypeCode registry.Source§const SCHEMA_VERSION: u16 = 1u16
const SCHEMA_VERSION: u16 = 1u16
Monotone schema version. Bump on field addition (
#[serde(default)]
paired); field removal / reorder forbidden.Source§fn approx_size(&self) -> usize
fn approx_size(&self) -> usize
Approximate payload size for quota tracking. Default returns
size_of::<Self>(); override for bytes::Bytes-carrying Components.Source§impl Clone for ParentChainDepth
impl Clone for ParentChainDepth
Source§fn clone(&self) -> ParentChainDepth
fn clone(&self) -> ParentChainDepth
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 ParentChainDepth
impl Debug for ParentChainDepth
Source§impl<'de> Deserialize<'de> for ParentChainDepth
impl<'de> Deserialize<'de> for ParentChainDepth
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ParentChainDepth
impl PartialEq for ParentChainDepth
Source§fn eq(&self, other: &ParentChainDepth) -> bool
fn eq(&self, other: &ParentChainDepth) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ParentChainDepth
impl Serialize for ParentChainDepth
impl Copy for ParentChainDepth
impl Eq for ParentChainDepth
impl StructuralPartialEq for ParentChainDepth
Auto Trait Implementations§
impl Freeze for ParentChainDepth
impl RefUnwindSafe for ParentChainDepth
impl Send for ParentChainDepth
impl Sync for ParentChainDepth
impl Unpin for ParentChainDepth
impl UnsafeUnpin for ParentChainDepth
impl UnwindSafe for ParentChainDepth
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