#[repr(C)]pub enum NetPayload {
None,
Value(f32),
Coordinates {
x: f32,
y: f32,
},
}Expand description
Payload data for network messages.
Type-safe discriminated union that can carry different data types
while maintaining Copy semantics for lock-free buffers.
Variants§
None
No payload data.
Value(f32)
Single float value (for parameter changes).
Coordinates
2D coordinates (for spatial triggers).
Implementations§
Trait Implementations§
Source§impl Clone for NetPayload
impl Clone for NetPayload
Source§fn clone(&self) -> NetPayload
fn clone(&self) -> NetPayload
Returns a duplicate of the value. Read more
1.0.0 · 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 NetPayload
impl Debug for NetPayload
Source§impl Default for NetPayload
impl Default for NetPayload
Source§fn default() -> NetPayload
fn default() -> NetPayload
Returns the “default value” for a type. Read more
impl Copy for NetPayload
Auto Trait Implementations§
impl Freeze for NetPayload
impl RefUnwindSafe for NetPayload
impl Send for NetPayload
impl Sync for NetPayload
impl Unpin for NetPayload
impl UnwindSafe for NetPayload
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