pub struct RealTimeApi(/* private fields */);Expand description
Interface for RealTime API.
Implementations§
Source§impl RealTimeApi
impl RealTimeApi
Sourcepub const fn as_ptr(&self) -> *const RealTimeData
pub const fn as_ptr(&self) -> *const RealTimeData
Returns a raw pointer to the RealTimeData.
Sourcepub const fn as_non_null(&self) -> NonNull<RealTimeData>
pub const fn as_non_null(&self) -> NonNull<RealTimeData>
Returns a NonNull to the RealTimeData.
Sourcepub unsafe fn as_ref(&self) -> &RealTimeData
pub unsafe fn as_ref(&self) -> &RealTimeData
Returns a reference to the value.
This is dangerous since the memory is volatile and holding a reference can easily violate aliasing rules.
§Safety
See NonNull::as_ref.
Sourcepub fn read_world(&self) -> Option<WorldData>
pub fn read_world(&self) -> Option<WorldData>
Reads the WorldData.
Sourcepub fn read_group(&self) -> Option<GroupData>
pub fn read_group(&self) -> Option<GroupData>
Reads the GroupData.
Sourcepub fn read_player(&self) -> Option<PlayerData>
pub fn read_player(&self) -> Option<PlayerData>
Reads the PlayerData.
Sourcepub fn read_camera(&self) -> Option<CameraData>
pub fn read_camera(&self) -> Option<CameraData>
Reads the CameraData.
Trait Implementations§
Source§impl Clone for RealTimeApi
impl Clone for RealTimeApi
Source§fn clone(&self) -> RealTimeApi
fn clone(&self) -> RealTimeApi
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 RealTimeApi
impl Debug for RealTimeApi
impl Copy for RealTimeApi
Auto Trait Implementations§
impl Freeze for RealTimeApi
impl RefUnwindSafe for RealTimeApi
impl !Send for RealTimeApi
impl !Sync for RealTimeApi
impl Unpin for RealTimeApi
impl UnwindSafe for RealTimeApi
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