Struct FrameLockPacket
#[repr(C, align(64))]pub struct FrameLockPacket {
pub magic: [u8; 4],
pub protocol_version: u16,
pub cluster_id: u16,
pub lamport_clock: u64,
pub observer_pos: [f32; 3],
pub solar_irradiance_alpha: f32,
pub observer_rot: [f32; 4],
pub quantum_branch_q: u32,
pub environmental_seed: u32,
pub network_flags: u32,
pub packet_crc32c: u32,
}Expand description
Fixed 64-Byte Aligned Frame-Lock Packet broadcast over UDP multicast at 60/120 Hz.
Fields§
§magic: [u8; 4]0x00..0x04: ASCII Magic FMLK
protocol_version: u160x04..0x06: Protocol version (1)
cluster_id: u160x06..0x08: Cluster Identifier
lamport_clock: u640x08..0x10: Monotonic Lamport simulation clock tick
observer_pos: [f32; 3]0x10..0x1C: Observer camera focal position (x, y, z) in meters relative to cluster datum (12 bytes)
solar_irradiance_alpha: f320x1C..0x20: Solar radiant irradiance & zenith factor (α)
observer_rot: [f32; 4]0x20..0x30: Camera orientation quaternion (qx, qy, qz, qw) (16 bytes)
quantum_branch_q: u320x30..0x34: Active simulation quantum branch q (0 = ground truth)
environmental_seed: u320x34..0x38: Environmental PRNG seed (wind, rain turbulence, wildlife)
network_flags: u320x38..0x3C: Reserved for network flags
packet_crc32c: u320x3C..0x40: CRC-32C checksum of bytes 0..60
Implementations§
§impl FrameLockPacket
impl FrameLockPacket
pub fn update_crc(&mut self)
pub fn update_crc(&mut self)
Updates the CRC-32C checksum over the 60-byte payload.
Trait Implementations§
§impl Clone for FrameLockPacket
impl Clone for FrameLockPacket
§fn clone(&self) -> FrameLockPacket
fn clone(&self) -> FrameLockPacket
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 moreimpl Copy for FrameLockPacket
§impl Debug for FrameLockPacket
impl Debug for FrameLockPacket
§impl Default for FrameLockPacket
impl Default for FrameLockPacket
§fn default() -> FrameLockPacket
fn default() -> FrameLockPacket
Returns the “default value” for a type. Read more
§impl PartialEq for FrameLockPacket
impl PartialEq for FrameLockPacket
impl Pod for FrameLockPacket
impl StructuralPartialEq for FrameLockPacket
Auto Trait Implementations§
impl Freeze for FrameLockPacket
impl RefUnwindSafe for FrameLockPacket
impl Send for FrameLockPacket
impl Sync for FrameLockPacket
impl Unpin for FrameLockPacket
impl UnsafeUnpin for FrameLockPacket
impl UnwindSafe for FrameLockPacket
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
impl<T> AnyBitPattern for Twhere
T: Pod,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
impl<T> Interleave for Twhere
T: Pod,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> NoUninit for Twhere
T: Pod,
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.