pub struct ReplicationFrameRef<'a> {
pub client_id: ClientId,
pub server_tick: Tick,
pub entity_count: u32,
pub estimated_payload_bytes: u32,
/* private fields */
}Expand description
Borrowed replication frame decoded directly from immutable wire bytes.
Fields§
§client_id: ClientIdTarget client.
server_tick: TickServer tick represented by this frame.
entity_count: u32Number of entity updates reported by the sender.
estimated_payload_bytes: u32Estimated payload bytes before transport overhead.
Implementations§
Source§impl<'a> ReplicationFrameRef<'a>
impl<'a> ReplicationFrameRef<'a>
Sourcepub const fn encoded_entity_count(self) -> usize
pub const fn encoded_entity_count(self) -> usize
Number of concrete entity deltas encoded in this frame.
Sourcepub fn entities(self) -> EntityDeltaRefIter<'a> ⓘ
pub fn entities(self) -> EntityDeltaRefIter<'a> ⓘ
Iterates concrete entity deltas without allocating.
Sourcepub fn to_owned(self) -> ReplicationFrame
pub fn to_owned(self) -> ReplicationFrame
Materializes the compatible owned frame shape.
Trait Implementations§
Source§impl<'a> Clone for ReplicationFrameRef<'a>
impl<'a> Clone for ReplicationFrameRef<'a>
Source§fn clone(&self) -> ReplicationFrameRef<'a>
fn clone(&self) -> ReplicationFrameRef<'a>
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<'a> Copy for ReplicationFrameRef<'a>
Source§impl<'a> Debug for ReplicationFrameRef<'a>
impl<'a> Debug for ReplicationFrameRef<'a>
impl<'a> Eq for ReplicationFrameRef<'a>
Source§impl<'a> PartialEq for ReplicationFrameRef<'a>
impl<'a> PartialEq for ReplicationFrameRef<'a>
impl<'a> StructuralPartialEq for ReplicationFrameRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ReplicationFrameRef<'a>
impl<'a> RefUnwindSafe for ReplicationFrameRef<'a>
impl<'a> Send for ReplicationFrameRef<'a>
impl<'a> Sync for ReplicationFrameRef<'a>
impl<'a> Unpin for ReplicationFrameRef<'a>
impl<'a> UnsafeUnpin for ReplicationFrameRef<'a>
impl<'a> UnwindSafe for ReplicationFrameRef<'a>
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