TileReport

Struct TileReport 

Source
#[repr(C, align(64))]
pub struct TileReport {
Show 21 fields pub tile_id: u8, pub status: TileStatus, pub generation: u16, pub tick: u32, pub num_vertices: u16, pub num_edges: u16, pub num_components: u16, pub graph_flags: u16, pub log_e_value: LogEValue, pub obs_count: u16, pub rejected_count: u16, pub witness: WitnessFragment, pub delta_time_us: u16, pub tick_time_us: u16, pub deltas_processed: u16, pub memory_kb: u16, pub ghost_vertices: u16, pub ghost_edges: u16, pub boundary_vertices: u16, pub pending_sync: u16, pub _reserved: [u8; 8],
}
Expand description

Tile report produced after each tick (64 bytes, cache-line aligned)

This structure is designed to fit exactly in one cache line for efficient memory access patterns in the coordinator.

Fields§

§tile_id: u8

Tile ID (0-255)

§status: TileStatus

Tile status

§generation: u16

Generation/epoch number

§tick: u32

Current tick number

§num_vertices: u16

Number of active vertices

§num_edges: u16

Number of active edges

§num_components: u16

Number of connected components

§graph_flags: u16

Graph flags

§log_e_value: LogEValue

Global log e-value (tile-local)

§obs_count: u16

Number of observations processed

§rejected_count: u16

Number of rejected hypotheses

§witness: WitnessFragment

Primary witness fragment

§delta_time_us: u16

Delta processing time (microseconds)

§tick_time_us: u16

Tick processing time (microseconds)

§deltas_processed: u16

Deltas processed this tick

§memory_kb: u16

Memory usage (KB)

§ghost_vertices: u16

Number of ghost vertices

§ghost_edges: u16

Number of ghost edges

§boundary_vertices: u16

Boundary vertices (shared with other tiles)

§pending_sync: u16

Pending sync messages

§_reserved: [u8; 8]

Reserved fields

Implementations§

Source§

impl TileReport

Source

pub const GRAPH_CONNECTED: u16 = 1u16

Graph flag: graph is connected

Source

pub const GRAPH_DIRTY: u16 = 2u16

Graph flag: graph is dirty (needs recomputation)

Source

pub const GRAPH_FULL: u16 = 4u16

Graph flag: graph is at capacity

Source

pub const GRAPH_HAS_GHOSTS: u16 = 8u16

Graph flag: graph has ghost edges

Source

pub const fn new(tile_id: u8) -> Self

Create a new report for a tile

Source

pub fn set_complete(&mut self)

Mark report as complete

Source

pub fn set_error(&mut self)

Mark report as error

Source

pub fn set_connected(&mut self, connected: bool)

Set connected flag

Source

pub const fn is_connected(&self) -> bool

Check if graph is connected

Source

pub const fn is_dirty(&self) -> bool

Check if graph is dirty

Source

pub fn e_value_approx(&self) -> f32

Get e-value as approximate f32

Source

pub fn set_witness(&mut self, witness: WitnessFragment)

Update witness fragment

Source

pub const fn get_witness(&self) -> &WitnessFragment

Get the witness fragment

Source

pub const fn has_rejections(&self) -> bool

Check if tile has any rejections

Source

pub fn processing_rate(&self) -> f32

Get processing rate (deltas per microsecond)

Trait Implementations§

Source§

impl Clone for TileReport

Source§

fn clone(&self) -> TileReport

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TileReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for TileReport

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for TileReport

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.