Skip to main content

DashboardHeader

Struct DashboardHeader 

Source
#[repr(C)]
pub struct DashboardHeader { pub dashboard_magic: u32, pub header_version: u16, pub ui_framework: u8, pub compression: u8, pub bundle_size: u64, pub file_count: u32, pub entry_path_len: u16, pub reserved: u16, pub build_timestamp: u64, pub content_hash: [u8; 32], }
Expand description

64-byte header for DASHBOARD_SEG payloads.

Follows the standard 64-byte SegmentHeader. All multi-byte fields are little-endian on the wire.

Payload layout after header: [entry_path_bytes | file_table | file_data...]

File table: array of (path_len: u16, data_offset: u64, data_size: u64, path_bytes: [u8]) File data: concatenated raw file contents.

Fields§

§dashboard_magic: u32

Magic: DASHBOARD_MAGIC (0x52564442, “RVDB”).

§header_version: u16

DashboardHeader format version (currently 1).

§ui_framework: u8

UI framework: 0=threejs, 1=react, 2=custom.

§compression: u8

Compression: 0=none, 1=gzip, 2=brotli.

§bundle_size: u64

Total uncompressed bundle size in bytes.

§file_count: u32

Number of files in the bundle.

§entry_path_len: u16

Length of the entry point path string.

§reserved: u16

Reserved padding.

§build_timestamp: u64

Build timestamp (unix epoch seconds).

§content_hash: [u8; 32]

SHAKE-256-256 of the entire bundle payload.

Implementations§

Source§

impl DashboardHeader

Source

pub fn to_bytes(&self) -> [u8; 64]

Serialize the header to a 64-byte little-endian array.

Source

pub fn from_bytes(data: &[u8; 64]) -> Result<Self, RvfError>

Deserialize a DashboardHeader from a 64-byte slice.

Trait Implementations§

Source§

impl Clone for DashboardHeader

Source§

fn clone(&self) -> DashboardHeader

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for DashboardHeader

Source§

impl Debug for DashboardHeader

Source§

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

Formats the value using the given formatter. Read more

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, 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.