#[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
impl MessagePayload
Sourcepub fn try_as_set_active(&self) -> Result<&SetActive, CheckedCastError>
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.
Sourcepub fn as_set_active(&self) -> &SetActive
pub fn as_set_active(&self) -> &SetActive
Access self as set_active. Same conditions as [try_as_set_active]but panics on failure.
Sourcepub fn try_as_set_active_for_player(
&self,
) -> Result<&SetActiveForPlayer, CheckedCastError>
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.
Sourcepub fn as_set_active_for_player(&self) -> &SetActiveForPlayer
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.
Sourcepub fn try_as_spatial_query_raycast(
&self,
) -> Result<&SpatialQueryRaycast, CheckedCastError>
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.
Sourcepub fn as_spatial_query_raycast(&self) -> &SpatialQueryRaycast
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.
Sourcepub fn try_as_spatial_query_within_sphere(
&self,
) -> Result<&SpatialQueryWithinSphere, CheckedCastError>
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.
Sourcepub fn as_spatial_query_within_sphere(&self) -> &SpatialQueryWithinSphere
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.
Sourcepub fn try_as_spatial_query_result(
&self,
) -> Result<&SpatialQueryResult, CheckedCastError>
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.
Sourcepub fn as_spatial_query_result(&self) -> &SpatialQueryResult
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.
Sourcepub fn try_as_on_collision(&self) -> Result<&OnCollision, CheckedCastError>
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.
Sourcepub fn as_on_collision(&self) -> &OnCollision
pub fn as_on_collision(&self) -> &OnCollision
Access self as on_collision. Same conditions as [try_as_on_collision]but panics on failure.
Sourcepub fn try_as_on_trigger(&self) -> Result<&OnTrigger, CheckedCastError>
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.
Sourcepub fn as_on_trigger(&self) -> &OnTrigger
pub fn as_on_trigger(&self) -> &OnTrigger
Access self as on_trigger. Same conditions as [try_as_on_trigger]but panics on failure.
Sourcepub fn try_as_physics_force_request(
&self,
) -> Result<&PhysicsForceRequest, CheckedCastError>
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.
Sourcepub fn as_physics_force_request(&self) -> &PhysicsForceRequest
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.
Sourcepub fn try_as_set_value(&self) -> Result<&SetValue, CheckedCastError>
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.
Sourcepub fn as_set_value(&self) -> &SetValue
pub fn as_set_value(&self) -> &SetValue
Access self as set_value. Same conditions as [try_as_set_value]but panics on failure.
Sourcepub fn try_as_animate_value(&self) -> Result<&AnimateValue, CheckedCastError>
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.
Sourcepub fn as_animate_value(&self) -> &AnimateValue
pub fn as_animate_value(&self) -> &AnimateValue
Access self as animate_value. Same conditions as [try_as_animate_value]but panics on failure.
Sourcepub fn try_as_stop_animating_value(&self) -> Result<&SetValue, CheckedCastError>
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.
Sourcepub fn as_stop_animating_value(&self) -> &SetValue
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.
Sourcepub fn try_as_animation_reply(
&self,
) -> Result<&AnimationReply, CheckedCastError>
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.
Sourcepub fn as_animation_reply(&self) -> &AnimationReply
pub fn as_animation_reply(&self) -> &AnimationReply
Access self as animation_reply. Same conditions as [try_as_animation_reply]but panics on failure.
Sourcepub fn try_as_spatial_query_behind_plane(
&self,
) -> Result<&SpatialQueryBehindPlane, CheckedCastError>
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.
Sourcepub fn as_spatial_query_behind_plane(&self) -> &SpatialQueryBehindPlane
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.
Sourcepub fn try_as_physics_force_request2(
&self,
) -> Result<&PhysicsForceRequest2, CheckedCastError>
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.
Sourcepub fn as_physics_force_request2(&self) -> &PhysicsForceRequest2
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.
Sourcepub fn try_as_collision_matrix_row(
&self,
) -> Result<&CollisionMatrixRow, CheckedCastError>
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.
Sourcepub fn as_collision_matrix_row(&self) -> &CollisionMatrixRow
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.
Sourcepub fn try_as_spatial_query_raycast2(
&self,
) -> Result<&SpatialQueryRaycast2, CheckedCastError>
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.
Sourcepub fn as_spatial_query_raycast2(&self) -> &SpatialQueryRaycast2
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.
Sourcepub fn try_as_spatial_query_within_sphere2(
&self,
) -> Result<&SpatialQueryWithinSphere2, CheckedCastError>
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.
Sourcepub fn as_spatial_query_within_sphere2(&self) -> &SpatialQueryWithinSphere2
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.
Sourcepub fn try_as_spatial_query_behind_plane2(
&self,
) -> Result<&SpatialQueryBehindPlane2, CheckedCastError>
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.
Sourcepub fn as_spatial_query_behind_plane2(&self) -> &SpatialQueryBehindPlane2
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.
Sourcepub fn try_as_empty(&self) -> Result<&u8, CheckedCastError>
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.
Sourcepub fn as_empty(&self) -> &u8
pub fn as_empty(&self) -> &u8
Access self as empty. Same conditions as [try_as_empty]but panics on failure.
Sourcepub fn try_as_spatial_query_spherecast(
&self,
) -> Result<&SpatialQuerySpherecast, CheckedCastError>
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.
Sourcepub fn as_spatial_query_spherecast(&self) -> &SpatialQuerySpherecast
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.
Sourcepub fn try_as_spatial_query_hits(
&self,
) -> Result<&SpatialQueryHits, CheckedCastError>
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.
Sourcepub fn as_spatial_query_hits(&self) -> &SpatialQueryHits
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
impl Clone for MessagePayload
Source§fn clone(&self) -> MessagePayload
fn clone(&self) -> MessagePayload
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MessagePayload
impl Debug for MessagePayload
impl AnyBitPattern for MessagePayload
impl Copy for MessagePayload
impl NoUninit for MessagePayload
Auto Trait Implementations§
impl Freeze for MessagePayload
impl RefUnwindSafe for MessagePayload
impl Send for MessagePayload
impl Sync for MessagePayload
impl Unpin for MessagePayload
impl UnwindSafe for MessagePayload
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§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.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
bits
as &Self.