MessagePayload

Union MessagePayload 

Source
#[repr(C)]
pub union MessagePayload {
Show 21 fields pub set_active: TransparentPad<SetActive, __MessagePayload_set_active_PADDING>, pub set_active_for_player: TransparentPad<SetActiveForPlayer, __MessagePayload_set_active_for_player_PADDING>, pub spatial_query_raycast: TransparentPad<SpatialQueryRaycast, __MessagePayload_spatial_query_raycast_PADDING>, pub spatial_query_within_sphere: TransparentPad<SpatialQueryWithinSphere, __MessagePayload_spatial_query_within_sphere_PADDING>, pub spatial_query_result: TransparentPad<SpatialQueryResult, __MessagePayload_spatial_query_result_PADDING>, pub on_collision: TransparentPad<OnCollision, __MessagePayload_on_collision_PADDING>, pub on_trigger: TransparentPad<OnTrigger, __MessagePayload_on_trigger_PADDING>, pub physics_force_request: TransparentPad<PhysicsForceRequest, __MessagePayload_physics_force_request_PADDING>, pub set_value: TransparentPad<SetValue, __MessagePayload_set_value_PADDING>, pub animate_value: TransparentPad<AnimateValue, __MessagePayload_animate_value_PADDING>, pub stop_animating_value: TransparentPad<SetValue, __MessagePayload_stop_animating_value_PADDING>, pub animation_reply: TransparentPad<AnimationReply, __MessagePayload_animation_reply_PADDING>, pub spatial_query_behind_plane: TransparentPad<SpatialQueryBehindPlane, __MessagePayload_spatial_query_behind_plane_PADDING>, pub physics_force_request2: TransparentPad<PhysicsForceRequest2, __MessagePayload_physics_force_request2_PADDING>, pub collision_matrix_row: TransparentPad<CollisionMatrixRow, __MessagePayload_collision_matrix_row_PADDING>, pub spatial_query_raycast2: TransparentPad<SpatialQueryRaycast2, __MessagePayload_spatial_query_raycast2_PADDING>, pub spatial_query_within_sphere2: TransparentPad<SpatialQueryWithinSphere2, __MessagePayload_spatial_query_within_sphere2_PADDING>, pub spatial_query_behind_plane2: TransparentPad<SpatialQueryBehindPlane2, __MessagePayload_spatial_query_behind_plane2_PADDING>, pub empty: TransparentPad<u8, __MessagePayload_empty_PADDING>, pub spatial_query_spherecast: TransparentPad<SpatialQuerySpherecast, __MessagePayload_spatial_query_spherecast_PADDING>, pub spatial_query_hits: TransparentPad<SpatialQueryHits, __MessagePayload_spatial_query_hits_PADDING>,
}

Fields§

§set_active: TransparentPad<SetActive, __MessagePayload_set_active_PADDING>§set_active_for_player: TransparentPad<SetActiveForPlayer, __MessagePayload_set_active_for_player_PADDING>§spatial_query_raycast: TransparentPad<SpatialQueryRaycast, __MessagePayload_spatial_query_raycast_PADDING>§spatial_query_within_sphere: TransparentPad<SpatialQueryWithinSphere, __MessagePayload_spatial_query_within_sphere_PADDING>§spatial_query_result: TransparentPad<SpatialQueryResult, __MessagePayload_spatial_query_result_PADDING>§on_collision: TransparentPad<OnCollision, __MessagePayload_on_collision_PADDING>§on_trigger: TransparentPad<OnTrigger, __MessagePayload_on_trigger_PADDING>§physics_force_request: TransparentPad<PhysicsForceRequest, __MessagePayload_physics_force_request_PADDING>§set_value: TransparentPad<SetValue, __MessagePayload_set_value_PADDING>§animate_value: TransparentPad<AnimateValue, __MessagePayload_animate_value_PADDING>§stop_animating_value: TransparentPad<SetValue, __MessagePayload_stop_animating_value_PADDING>§animation_reply: TransparentPad<AnimationReply, __MessagePayload_animation_reply_PADDING>§spatial_query_behind_plane: TransparentPad<SpatialQueryBehindPlane, __MessagePayload_spatial_query_behind_plane_PADDING>§physics_force_request2: TransparentPad<PhysicsForceRequest2, __MessagePayload_physics_force_request2_PADDING>§collision_matrix_row: TransparentPad<CollisionMatrixRow, __MessagePayload_collision_matrix_row_PADDING>§spatial_query_raycast2: TransparentPad<SpatialQueryRaycast2, __MessagePayload_spatial_query_raycast2_PADDING>§spatial_query_within_sphere2: TransparentPad<SpatialQueryWithinSphere2, __MessagePayload_spatial_query_within_sphere2_PADDING>§spatial_query_behind_plane2: TransparentPad<SpatialQueryBehindPlane2, __MessagePayload_spatial_query_behind_plane2_PADDING>§empty: TransparentPad<u8, __MessagePayload_empty_PADDING>§spatial_query_spherecast: TransparentPad<SpatialQuerySpherecast, __MessagePayload_spatial_query_spherecast_PADDING>§spatial_query_hits: TransparentPad<SpatialQueryHits, __MessagePayload_spatial_query_hits_PADDING>

Implementations§

Source§

impl MessagePayload

Source

pub fn try_as_set_active(&self) -> Result<&SetActive, CheckedCastError>

Attempt to access self as set_active.

Will succeed if the cast is safe, even if set_active was not the logically inhabited formof self, i.e. does not check that self was last written as set_active as longas the underlying memory is safe (not necessarily logical) to interpret as set_active.

Source

pub fn as_set_active(&self) -> &SetActive

Access self as set_active. Same conditions as [try_as_set_active]but panics on failure.

Source

pub fn try_as_set_active_for_player( &self, ) -> Result<&SetActiveForPlayer, CheckedCastError>

Attempt to access self as set_active_for_player.

Will succeed if the cast is safe, even if set_active_for_player was not the logically inhabited formof self, i.e. does not check that self was last written as set_active_for_player as longas the underlying memory is safe (not necessarily logical) to interpret as set_active_for_player.

Source

pub fn as_set_active_for_player(&self) -> &SetActiveForPlayer

Access self as set_active_for_player. Same conditions as [try_as_set_active_for_player]but panics on failure.

Source

pub fn try_as_spatial_query_raycast( &self, ) -> Result<&SpatialQueryRaycast, CheckedCastError>

Attempt to access self as spatial_query_raycast.

Will succeed if the cast is safe, even if spatial_query_raycast was not the logically inhabited formof self, i.e. does not check that self was last written as spatial_query_raycast as longas the underlying memory is safe (not necessarily logical) to interpret as spatial_query_raycast.

Source

pub fn as_spatial_query_raycast(&self) -> &SpatialQueryRaycast

Access self as spatial_query_raycast. Same conditions as [try_as_spatial_query_raycast]but panics on failure.

Source

pub fn try_as_spatial_query_within_sphere( &self, ) -> Result<&SpatialQueryWithinSphere, CheckedCastError>

Attempt to access self as spatial_query_within_sphere.

Will succeed if the cast is safe, even if spatial_query_within_sphere was not the logically inhabited formof self, i.e. does not check that self was last written as spatial_query_within_sphere as longas the underlying memory is safe (not necessarily logical) to interpret as spatial_query_within_sphere.

Source

pub fn as_spatial_query_within_sphere(&self) -> &SpatialQueryWithinSphere

Access self as spatial_query_within_sphere. Same conditions as [try_as_spatial_query_within_sphere]but panics on failure.

Source

pub fn try_as_spatial_query_result( &self, ) -> Result<&SpatialQueryResult, CheckedCastError>

Attempt to access self as spatial_query_result.

Will succeed if the cast is safe, even if spatial_query_result was not the logically inhabited formof self, i.e. does not check that self was last written as spatial_query_result as longas the underlying memory is safe (not necessarily logical) to interpret as spatial_query_result.

Source

pub fn as_spatial_query_result(&self) -> &SpatialQueryResult

Access self as spatial_query_result. Same conditions as [try_as_spatial_query_result]but panics on failure.

Source

pub fn try_as_on_collision(&self) -> Result<&OnCollision, CheckedCastError>

Attempt to access self as on_collision.

Will succeed if the cast is safe, even if on_collision was not the logically inhabited formof self, i.e. does not check that self was last written as on_collision as longas the underlying memory is safe (not necessarily logical) to interpret as on_collision.

Source

pub fn as_on_collision(&self) -> &OnCollision

Access self as on_collision. Same conditions as [try_as_on_collision]but panics on failure.

Source

pub fn try_as_on_trigger(&self) -> Result<&OnTrigger, CheckedCastError>

Attempt to access self as on_trigger.

Will succeed if the cast is safe, even if on_trigger was not the logically inhabited formof self, i.e. does not check that self was last written as on_trigger as longas the underlying memory is safe (not necessarily logical) to interpret as on_trigger.

Source

pub fn as_on_trigger(&self) -> &OnTrigger

Access self as on_trigger. Same conditions as [try_as_on_trigger]but panics on failure.

Source

pub fn try_as_physics_force_request( &self, ) -> Result<&PhysicsForceRequest, CheckedCastError>

Attempt to access self as physics_force_request.

Will succeed if the cast is safe, even if physics_force_request was not the logically inhabited formof self, i.e. does not check that self was last written as physics_force_request as longas the underlying memory is safe (not necessarily logical) to interpret as physics_force_request.

Source

pub fn as_physics_force_request(&self) -> &PhysicsForceRequest

Access self as physics_force_request. Same conditions as [try_as_physics_force_request]but panics on failure.

Source

pub fn try_as_set_value(&self) -> Result<&SetValue, CheckedCastError>

Attempt to access self as set_value.

Will succeed if the cast is safe, even if set_value was not the logically inhabited formof self, i.e. does not check that self was last written as set_value as longas the underlying memory is safe (not necessarily logical) to interpret as set_value.

Source

pub fn as_set_value(&self) -> &SetValue

Access self as set_value. Same conditions as [try_as_set_value]but panics on failure.

Source

pub fn try_as_animate_value(&self) -> Result<&AnimateValue, CheckedCastError>

Attempt to access self as animate_value.

Will succeed if the cast is safe, even if animate_value was not the logically inhabited formof self, i.e. does not check that self was last written as animate_value as longas the underlying memory is safe (not necessarily logical) to interpret as animate_value.

Source

pub fn as_animate_value(&self) -> &AnimateValue

Access self as animate_value. Same conditions as [try_as_animate_value]but panics on failure.

Source

pub fn try_as_stop_animating_value(&self) -> Result<&SetValue, CheckedCastError>

Attempt to access self as stop_animating_value.

Will succeed if the cast is safe, even if stop_animating_value was not the logically inhabited formof self, i.e. does not check that self was last written as stop_animating_value as longas the underlying memory is safe (not necessarily logical) to interpret as stop_animating_value.

Source

pub fn as_stop_animating_value(&self) -> &SetValue

Access self as stop_animating_value. Same conditions as [try_as_stop_animating_value]but panics on failure.

Source

pub fn try_as_animation_reply( &self, ) -> Result<&AnimationReply, CheckedCastError>

Attempt to access self as animation_reply.

Will succeed if the cast is safe, even if animation_reply was not the logically inhabited formof self, i.e. does not check that self was last written as animation_reply as longas the underlying memory is safe (not necessarily logical) to interpret as animation_reply.

Source

pub fn as_animation_reply(&self) -> &AnimationReply

Access self as animation_reply. Same conditions as [try_as_animation_reply]but panics on failure.

Source

pub fn try_as_spatial_query_behind_plane( &self, ) -> Result<&SpatialQueryBehindPlane, CheckedCastError>

Attempt to access self as spatial_query_behind_plane.

Will succeed if the cast is safe, even if spatial_query_behind_plane was not the logically inhabited formof self, i.e. does not check that self was last written as spatial_query_behind_plane as longas the underlying memory is safe (not necessarily logical) to interpret as spatial_query_behind_plane.

Source

pub fn as_spatial_query_behind_plane(&self) -> &SpatialQueryBehindPlane

Access self as spatial_query_behind_plane. Same conditions as [try_as_spatial_query_behind_plane]but panics on failure.

Source

pub fn try_as_physics_force_request2( &self, ) -> Result<&PhysicsForceRequest2, CheckedCastError>

Attempt to access self as physics_force_request2.

Will succeed if the cast is safe, even if physics_force_request2 was not the logically inhabited formof self, i.e. does not check that self was last written as physics_force_request2 as longas the underlying memory is safe (not necessarily logical) to interpret as physics_force_request2.

Source

pub fn as_physics_force_request2(&self) -> &PhysicsForceRequest2

Access self as physics_force_request2. Same conditions as [try_as_physics_force_request2]but panics on failure.

Source

pub fn try_as_collision_matrix_row( &self, ) -> Result<&CollisionMatrixRow, CheckedCastError>

Attempt to access self as collision_matrix_row.

Will succeed if the cast is safe, even if collision_matrix_row was not the logically inhabited formof self, i.e. does not check that self was last written as collision_matrix_row as longas the underlying memory is safe (not necessarily logical) to interpret as collision_matrix_row.

Source

pub fn as_collision_matrix_row(&self) -> &CollisionMatrixRow

Access self as collision_matrix_row. Same conditions as [try_as_collision_matrix_row]but panics on failure.

Source

pub fn try_as_spatial_query_raycast2( &self, ) -> Result<&SpatialQueryRaycast2, CheckedCastError>

Attempt to access self as spatial_query_raycast2.

Will succeed if the cast is safe, even if spatial_query_raycast2 was not the logically inhabited formof self, i.e. does not check that self was last written as spatial_query_raycast2 as longas the underlying memory is safe (not necessarily logical) to interpret as spatial_query_raycast2.

Source

pub fn as_spatial_query_raycast2(&self) -> &SpatialQueryRaycast2

Access self as spatial_query_raycast2. Same conditions as [try_as_spatial_query_raycast2]but panics on failure.

Source

pub fn try_as_spatial_query_within_sphere2( &self, ) -> Result<&SpatialQueryWithinSphere2, CheckedCastError>

Attempt to access self as spatial_query_within_sphere2.

Will succeed if the cast is safe, even if spatial_query_within_sphere2 was not the logically inhabited formof self, i.e. does not check that self was last written as spatial_query_within_sphere2 as longas the underlying memory is safe (not necessarily logical) to interpret as spatial_query_within_sphere2.

Source

pub fn as_spatial_query_within_sphere2(&self) -> &SpatialQueryWithinSphere2

Access self as spatial_query_within_sphere2. Same conditions as [try_as_spatial_query_within_sphere2]but panics on failure.

Source

pub fn try_as_spatial_query_behind_plane2( &self, ) -> Result<&SpatialQueryBehindPlane2, CheckedCastError>

Attempt to access self as spatial_query_behind_plane2.

Will succeed if the cast is safe, even if spatial_query_behind_plane2 was not the logically inhabited formof self, i.e. does not check that self was last written as spatial_query_behind_plane2 as longas the underlying memory is safe (not necessarily logical) to interpret as spatial_query_behind_plane2.

Source

pub fn as_spatial_query_behind_plane2(&self) -> &SpatialQueryBehindPlane2

Access self as spatial_query_behind_plane2. Same conditions as [try_as_spatial_query_behind_plane2]but panics on failure.

Source

pub fn try_as_empty(&self) -> Result<&u8, CheckedCastError>

Attempt to access self as empty.

Will succeed if the cast is safe, even if empty was not the logically inhabited formof self, i.e. does not check that self was last written as empty as longas the underlying memory is safe (not necessarily logical) to interpret as empty.

Source

pub fn as_empty(&self) -> &u8

Access self as empty. Same conditions as [try_as_empty]but panics on failure.

Source

pub fn try_as_spatial_query_spherecast( &self, ) -> Result<&SpatialQuerySpherecast, CheckedCastError>

Attempt to access self as spatial_query_spherecast.

Will succeed if the cast is safe, even if spatial_query_spherecast was not the logically inhabited formof self, i.e. does not check that self was last written as spatial_query_spherecast as longas the underlying memory is safe (not necessarily logical) to interpret as spatial_query_spherecast.

Source

pub fn as_spatial_query_spherecast(&self) -> &SpatialQuerySpherecast

Access self as spatial_query_spherecast. Same conditions as [try_as_spatial_query_spherecast]but panics on failure.

Source

pub fn try_as_spatial_query_hits( &self, ) -> Result<&SpatialQueryHits, CheckedCastError>

Attempt to access self as spatial_query_hits.

Will succeed if the cast is safe, even if spatial_query_hits was not the logically inhabited formof self, i.e. does not check that self was last written as spatial_query_hits as longas the underlying memory is safe (not necessarily logical) to interpret as spatial_query_hits.

Source

pub fn as_spatial_query_hits(&self) -> &SpatialQueryHits

Access self as spatial_query_hits. Same conditions as [try_as_spatial_query_hits]but panics on failure.

Trait Implementations§

Source§

impl Clone for MessagePayload

Source§

fn clone(&self) -> MessagePayload

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 MessagePayload

Source§

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

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

impl Zeroable for MessagePayload

Source§

fn zeroed() -> Self

Source§

impl AnyBitPattern for MessagePayload

Source§

impl Copy for MessagePayload

Source§

impl NoUninit for MessagePayload

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> CheckedBitPattern for T
where T: AnyBitPattern,

Source§

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.
Source§

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